Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 激活 - 能够伤害到Askia
 /// </summary>
 /// <param name="setPos"></param>
 public void Active(Vector2 setPos)
 {
     ThornState = EThornState.Ice;
     Position = setPos;
     Rotation = 0; //... 水平插入墙体
     Visible = true;
 }
Esempio n. 3
0
 public void HitRole()
 {
     ThornState = EThornState.Destroy;
 }