Exemple #1
0
        private void Run_Awake(On.RoR2.Run.orig_Awake orig, RoR2.Run self)
        {
            orig(self);

            deathTimerController.SetActive(true);

            if (NetworkServer.active)
            {
                usersRespawnController = base.gameObject.AddComponent <UsersRespawnController>();
                NetworkServer.Spawn(deathTimerController);
            }
        }
 protected void OnDisable()
 {
     UsersRespawnController.instance = SingletonHelper.Unassign <UsersRespawnController>(UsersRespawnController.instance, this);
 }