public static void AddPlayer(GamePlayer player_obj) { Players[player_obj.number] = player_obj; player_obj.SpawnAt(player_obj.number); if (instance != null) { //add player can be called BEFORE the object is built (i.e. when a client is also server, another client can have //loaded its scene faster. So no instance exist yet. All palyer will be init in the awake fonction then //if that function is called after the Awake (and so when an instance exist), we still need to init the player, so better do it here. } }