Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }