void Awake() { RoomUtils.RoomCode = RoomUtils.RandomString(6); // Generate a random room code in case we need it GameObject dataObject = new GameObject(); DontDestroyOnLoad(dataObject); PhotonNetworkControllerPatch.events = new Events(); UtillaPatches.ApplyHarmonyPatches(); }
void Awake() { RoomUtils.RoomCode = RoomUtils.RandomString(6); // Generate a random room code in case we need it GameObject dataObject = new GameObject(); DontDestroyOnLoad(dataObject); gameObject.AddComponent <UtillaNetworkController>(); Events.GameInitialized += PostInitialized; UtillaNetworkController.events = events; PostInitializedPatch.events = events; UtillaPatches.ApplyHarmonyPatches(); }