Example #1
0
 public virtual void Awake()
 {
     if (instance != null)
     {
         Debug.Log("Only one LobbyGUI can exist at a time.");
         Destroy(this);
     }
     else
     {
         instance = this;
     }
 }
Example #2
0
 private void Awake()
 {
     Instance = this;
 }
	void PlayerDisconnected(NetworkPlayer player){
        if (GameObject.Find("LobbyGUI") != null)
        {
            lobbyGUIscript = GameObject.Find("LobbyGUI").GetComponent<LobbyGUI>();
            lobbyGUIscript.RemoveReadyLight(player);
        }
        
        psInfo.RemovePlayer(player);
		--playerCounter;
    }