コード例 #1
0
 public override void Update(PlayerFMS player)
 {
     if (!player.moving)
     {
         Debug.Log(player.gameObject.name + "is now transitioning from Move to Wait for Order 2.");
         player.TransitionToState(player.waitForOrder2State);
     }
 }
コード例 #2
0
 public override void Update(PlayerFMS player)
 {
     if (ActiveCharacterManager.instance.activeUnit == player.unit)
     {
         Debug.Log(player.gameObject.name + "is now transitioning from Standby to Wait for Order 1.");
         player.TransitionToState(player.waitForOrder1State);
     }
 }
コード例 #3
0
 public override void Update(PlayerFMS player)
 {
     if (player.selectStatus != UnitSelectStatus.Tapped && player.turn)
     {
         Debug.Log(player.gameObject.name + "is now transitioning from Disabled to Standby.");
         player.TransitionToState(player.standbyState);
     }
 }
コード例 #4
0
 public override void Update(PlayerFMS player)
 {
     Picker.instance.PickTargetForMovement();
     if (player.moving)
     {
         Debug.Log(player.gameObject.name + "is now transitioning from Wait for Order 1 to Move.");
         player.TransitionToState(player.moveState);
     }
 }
コード例 #5
0
 public override void Update(PlayerFMS player)
 {
     TurnManager.instance.turnList.Remove(player.unit);
     player.selectStatus = UnitSelectStatus.Tapped;
     ActiveCharacterManager.instance.activeUnit = null;
     player.end = false;
     Debug.Log(player.gameObject.name + "is now transitioning from End to Disabled.");
     player.TransitionToState(player.disabledState);
 }
コード例 #6
0
 public override void Update(PlayerFMS player)
 {
     GraphUCS.instance.ClearInteractableTiles();
     PathDrawer.instance.DeletePath();
     //if(end) {
     Debug.Log(player.gameObject.name + "is now transitioning from Wait for Order 2 to End.");
     player.TransitionToState(player.endState);
     //}
 }