Esempio n. 1
0
 /// <summary>
 /// Unlink the photon player and hide the element
 /// </summary>
 public void DisconnectPlayer()
 {
     if (!CurrentSelection.CanBeSelected)
     {
         characterSelectionManager.UnlockPlayerType(CurrentSelection.CharacterType);
     }
     //LockElement(false);
     TDS_GameManager.PlayersInfo.Remove(PlayerInfo);
     PlayerInfo = null;
     gameObject.SetActive(false);
 }