private void ChangeStateAction(EThornState thornState) { switch (thornState) { case EThornState.Hot: ThornState = thornState; coolDownTime = 0; AnimTexture.PlaySeq("Normal"); break; case EThornState.CoolDown: ThornState = thornState; StopTween("Shoot"); coolDownTime = 0; AnimTexture.PlaySeq("Normal"); break; case EThornState.Ice: ThornState = thornState; iceTime = 0; AnimTexture.PlaySeq("Ice"); break; case EThornState.Destroy: ThornState = thornState; break; } }
/// <summary> /// 激活 - 能够伤害到Askia /// </summary> /// <param name="setPos"></param> public void Active(Vector2 setPos) { ThornState = EThornState.Ice; Position = setPos; Rotation = 0; //... 水平插入墙体 Visible = true; }
public void HitRole() { ThornState = EThornState.Destroy; }