Пример #1
0
 public static void SetPlayer([CanBeNull] GameObject player)
 {
     Debug.Log($"Changing player from {Instance} to {player}");
     Instance = player;
     OnPlayerSet?.Invoke(null, Instance);
 }
 public void SetPlayer(Player _player)
 {
     Player = _player;
     OnPlayerSet?.Invoke(this, null);
 }