赞
踩
布娃娃游戏系统源码 超级精品方便学习开发游戏
有兴趣联系 batchmichaelbxkxyj@gmail.com
- using UnityEngine;
- using UnityEngine.Events;
-
- namespace Uniday.ApplicationKit.AnimationKit
- {
- public abstract class EntityAnimation : MonoBehaviour
- {
- public event UnityAction<EntityAnimation, string> OnStartAnimationKey = delegate { };
- public event UnityAction<EntityAnimation, string> OnEndAnimationKey = delegate { };
-
- protected void SendStartTrackEntryHandler(string trackEntry) => OnStartAnimationKey?.Invoke(this, trackEntry);
- protected void SendEndTrackEntryHandler(string trackEntry) => OnEndAnimationKey?.Invoke(this, trackEntry);
-
- private string _currentAnimation;
- public string CurrentAnimation => _currentAnimation;
-
- protected void SetCurrentAnimation(string key) => _currentAnimation = key;
-
- public abstract void Initialize();
- public abstract void SetActive(bool isActive);
- public abstract void SetTrigger(string key);
- public abstract void SetFloat(string key, float value);
- public abstract void SetBool(string key, bool value);
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。