From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Scripts/Unit/Components/UnitState/UnitState.cs | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 Assets/Scripts/Unit/Components/UnitState/UnitState.cs (limited to 'Assets/Scripts/Unit/Components/UnitState/UnitState.cs') diff --git a/Assets/Scripts/Unit/Components/UnitState/UnitState.cs b/Assets/Scripts/Unit/Components/UnitState/UnitState.cs deleted file mode 100644 index ff42c2be..00000000 --- a/Assets/Scripts/Unit/Components/UnitState/UnitState.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -// 角色状态机 -[DisallowMultipleComponent] -public class UnitState : UnitComponent -{ - - public virtual bool isAnimationReachEnd - { - get - { - return owner.unitAnimation.baseLayer.playbackNormalizedTime == 1; - } - } - - // 如果设置了endpoint属性,检查是否到了endpoint - public virtual bool isAnimationReachEndPoint - { - get - { - var layer = owner.unitAnimation.baseLayer; - if (!layer.animationData.HasProperty(EAnimationProperty.Endpoint)) - return false; - return layer.playbackNormalizedTime >= layer.animationData.GetProperty(EAnimationProperty.Endpoint); - } - } - - public virtual bool isComboOpen - { - get - { - return owner.unitAnimation.baseLayer.IsToggleOpen(EAnimationToogle.Combo); - } - } - -} \ No newline at end of file -- cgit v1.1-26-g67d0