private void Awake() { SettingsManager.I.activeRoomnet = this; DevKeys.CreateInstance(); // Make sure an instance of devkeys exists BuildNetwork(); BuildGraph(); respawnPoint = transform.Find("ModulesRespawn"); }
public static void CreateInstance() { if (instance != null) { return; } GameObject go = new GameObject("DevKeys"); instance = go.AddComponent <DevKeys>(); instance.levelLoader = go.AddComponent <SteamVR_LoadLevel>(); DontDestroyOnLoad(go); }