コード例 #1
0
ファイル: PlayerTank.cs プロジェクト: HyVong007/BattleCity
 public void OnButtonA(Gamepad.ButtonState state)
 {
     for (int i = canShootBullets; i > 0; --i)
     {
         Shoot().Forget();
     }
 }
コード例 #2
0
ファイル: PlayerTank.cs プロジェクト: HyVong007/BattleCity
        public void OnDpad(Direction direction, Gamepad.ButtonState state)
        {
            if (isFreeze || moveTask.isRunning())
            {
                return;
            }
            if (this.direction != direction)
            {
                this.direction = direction;
                return;
            }

            if (canMove)
            {
                (moveTask = Move(direction, 1)).Forget();
            }
        }
コード例 #3
0
ファイル: PlayerTank.cs プロジェクト: HyVong007/BattleCity
 public void OnButtonY(Gamepad.ButtonState state)
 {
 }
コード例 #4
0
ファイル: BattleField.cs プロジェクト: HyVong007/BattleCity
 public void OnDpad(Direction direction, Gamepad.ButtonState state)
 {
 }