| | |
| | | using Core.Utilities; |
| | | using DG.Tweening; |
| | | using UnityEngine; |
| | | |
| | | /** |
| | |
| | | /// </summary> |
| | | public void Reset() |
| | | { |
| | | CanMove = true; |
| | | bInDeathState = false; |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public void PlayNormalEffect() |
| | | { |
| | | NormalEffect.Play(); |
| | | if (NormalEffect != null) |
| | | NormalEffect.Play(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public void StopNormalEffect() |
| | | { |
| | | NormalEffect.Stop(); |
| | | NormalEffect.Clear(); |
| | | if (NormalEffect != null) |
| | | NormalEffect.Stop(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public void PlayExplodeEffect() |
| | | { |
| | | ExplodeEffect.Play(); |
| | | if (ExplodeEffect != null) |
| | | ExplodeEffect.Play(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public void StopExplodeEffect() |
| | | { |
| | | ExplodeEffect.Stop(); |
| | | ExplodeEffect.Clear(); |
| | | if (ExplodeEffect != null) |
| | | ExplodeEffect.Stop(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | protected override void Update() |
| | | { |
| | | |
| | | } |
| | | |
| | | protected override void LateUpdate() |
| | | { |
| | | |
| | | } |
| | | |
| | | public override void Initialize() |
| | | { |
| | | this.configuration.bInvincible = true; |
| | | mDefaultScale = this.transform.localScale; |
| | | Sequence agentTweenSeq = DOTween.Sequence(); |
| | | var ss = mDefaultScale * 0.3f; |
| | | this.transform.localScale = this.transform.localScale * 0.3f; |
| | | Tweener agScale = this.transform.DOScale(mDefaultScale, 0.3f); |
| | | agentTweenSeq.Append(agScale); |
| | | agentTweenSeq.AppendCallback(beDamageStart); |
| | | } |
| | | } |
| | | } |