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