using System.Collections; using System.Collections.Generic; using UnityEngine; using Core.Utilities; /** * 无尽模式boss控制器 * @Author: chenxin * @Date: 2020-10-30 16:40:54 */ namespace KTGMGemClient { public class EndlessBossCtrl : Singleton { /// /// boss动作 /// public Animator BossAnimator; /// /// 动作状态 /// public EndlessBossActionState ActionState { get; set; } // Start is called before the first frame update private void Start() { } // Update is called once per frame private void Update() { } /// /// 帧事件 /// /// public void FireAnimationEvent(string frameName) { if (frameName == "summonEnd") { EventCenter.Ins.BroadCast((int)EventType.EndlessBossSummonEnd); } } /// /// 切换状态 /// /// public void ChangeState(EndlessBossActionState newState) { if (newState == ActionState) return; ActionState = newState; BossAnimator.SetInteger("State", (int)newState); } } }