Exemple #1
0
        private void Run_OnServerTeleporterPlaced(On.RoR2.Run.orig_OnServerTeleporterPlaced orig, Run self, SceneDirector sceneDirector, GameObject teleporter)
        {
            orig(self, sceneDirector, teleporter);
            TeleporterInteraction teleporterInteraction = teleporter.GetComponent <TeleporterInteraction>();

            teleporterInteraction.NetworkactivationStateInternal = 1; // 1 == idleToChargingState
        }