Ejemplo n.º 1
0
 public void PlayCharacter(CharacterComponent character)
 {
     if (_controlledCharacter != null)
     {
         _controlledCharacter.GetComponent <NavMeshAgent> ().enabled = false;
         _controlledCharacter.PlayedSquares = 0;
     }
     _controlledCharacter = character;
     Map.ActivateColor(_controlledCharacter.AffinityColor);
 }