diff options
author | chai <chaifix@163.com> | 2021-09-04 14:02:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-04 14:02:24 +0800 |
commit | 34d01108e9f0c5488e8824f768c43801dd8ed4cc (patch) | |
tree | 8656926dc0fdb116590e295ce1038a192bc0eca3 /Assets/Scripts/Unit/Components/UnitState/PCState.cs | |
parent | 18a46c5eda8dad703eca557c6553f7f0ed3461af (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Components/UnitState/PCState.cs')
-rw-r--r-- | Assets/Scripts/Unit/Components/UnitState/PCState.cs | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitState/PCState.cs b/Assets/Scripts/Unit/Components/UnitState/PCState.cs index 54a48cc2..e448b6b2 100644 --- a/Assets/Scripts/Unit/Components/UnitState/PCState.cs +++ b/Assets/Scripts/Unit/Components/UnitState/PCState.cs @@ -44,9 +44,16 @@ public class PCState : UnitState public override void Initialize() { base.Initialize(); - } + owner.onTimelineEvent += OnTimeLineEvent; + } - PCAnimation pcAnimation { get { return m_Owner.pcAnimation; } } + public override void Release()
+ {
+ owner.onTimelineEvent -= OnTimeLineEvent;
+ base.Release();
+ } +
+ PCAnimation pcAnimation { get { return m_Owner.pcAnimation; } } #region state param public struct IdleParam { } @@ -451,9 +458,17 @@ public class PCState : UnitState void OnLandingExit(EUnitState next) { - } - - #endregion - -} -
\ No newline at end of file + }
+
+ #endregion +
+ #region timeline event handle
+
+ void OnTimeLineEvent(AnimationEventBase animEvent)
+ {
+
+ }
+
+ #endregion
+
+}
\ No newline at end of file |