public void Spawned(Pawn newPawn)
 {
     isAvalable = false;
     newPawn.SetTeam(team);
     spawnedObject = newPawn.gameObject;
 }