//Singleton - Only the monobehaviour instance attached to this GO should be used public static AWConfig GetInstance() { if (instance == null) { instance = GameObject.Find(AW_CONFIG_GO_NAME).GetComponent <AWConfig> (); } return(instance); }
public static bool IsServer() { switch (AWConfig.GetInstance().netSystem) { case NetSystem.HLAPI: return(((AWNetworkManager)AWNetworkManager.singleton).IsServer()); case NetSystem.NONE: return(true); } return(false); }