Beispiel #1
0
 //バフをかける
 public void BuffPlayer()
 {
     action = (int)Action.Buff;
     TurnAndPhase.StartAction();
     Log.ShowLog(4);
     Status.PowerUpPlayer();
     animator.SetTrigger("BuffTrigger");
     swingFlag = true;
     timer     = 0;
 }
Beispiel #2
0
 //移動開始
 public void MovePlayer(List <Vector2> list)
 {
     root        = list;
     moveCounter = 0;
     rootCounter = root.Count;
     action      = (int)Action.Move;
     TurnAndPhase.StartAction();
     FollowRoot(list[rootCounter - 1]);
     animator.SetBool("PlayerMove", true);
     Music.PlaySELoop(Music.Clip.Dash);
 }
Beispiel #3
0
 //デバフをかける
 public void DebuffPlayer(Vector2 vecGame)
 {
     action = (int)Action.Debuff;
     TurnAndPhase.StartAction();
     Log.ShowLog(5);
     FollowRoot(vecGame);
     Unit.ChangeDirectionEnemy(vecGame);
     enemyVec = vecGame;
     animator.SetTrigger("DebuffTrigger");
     swingFlag = true;
     timer     = 0;
 }
Beispiel #4
0
    //エクストラ行動
    public void ExtraPlayer()
    {
        int[] eff = ReadWrite.CallCommandEffect(TurnAndPhase.type, TurnAndPhase.variety);
        switch (eff[0])
        {
        case 0:
            action = (int)Action.Buff;
            Log.ShowLog(4);
            Status.PowerUpPlayer();
            animator.SetTrigger("BuffTrigger");
            break;

        case 1:
            action = (int)Action.Dig;
            break;
        }
        TurnAndPhase.StartAction();
        swingFlag = true;
        timer     = 0;
    }