Beispiel #1
0
 public void BackToMovement()
 {
     if (GameManager.instance.playingPlaceable.Player == player)
     {
         GameManager.instance.playingPlaceable.ResetTargets();
         RaycastSelector rayselect = GameManager.instance.playingPlaceable.player.GetComponentInChildren <RaycastSelector>();
         rayselect.EffectArea             = 0;
         rayselect.Pattern                = SkillArea.NONE;
         GameManager.instance.State       = States.Move;
         GameManager.instance.activeSkill = null;
         GameManager.instance.playingPlaceable.AreaOfMouvement = Grid.instance.CanGo(GameManager.instance.playingPlaceable.GetPosition(), GameManager.instance.playingPlaceable.CurrentPM,
                                                                                     GameManager.instance.playingPlaceable.Jump, GameManager.instance.playingPlaceable.Player);
         GameManager.instance.playingPlaceable.ChangeMaterialAreaOfMovement(GameManager.instance.pathFindingMaterial);
     }
 }
Beispiel #2
0
 public void EndOFTurn()
 {
     if (winner == null)
     {
         //cleaning and checks and synchro with banana dancing if needed
         Debug.Log("tour suivaaaaaaaaant Area of movement=" + playingPlaceable.AreaOfMouvement.Count);
         if (playingPlaceable.Player.isLocalPlayer)
         {
             playingPlaceable.ResetTargets();
             playingPlaceable.ResetAreaOfMovement();
             playingPlaceable.ResetHighlightSkill();
             RaycastSelector rayselect = playingPlaceable.Player.GetComponentInChildren <RaycastSelector>();
             rayselect.EffectArea = 0;
             rayselect.Pattern    = SkillArea.NONE;
             playingPlaceable.Player.GetComponent <UIManager>().ResetEndTurn();
             //playingPlaceable.Player.cameraScript.Freecam = 1;
             //ResetAllBatches();
         }
         BeginningOfTurn();
     }
 }