void OnWorldSwitch(WorldSwitching world) { switch (world.targetWorld) { case Worlds.Pull: PullWorld2Cam.enabled = true; PushWorld1Cam.enabled = false; break; case Worlds.Push: PushWorld1Cam.enabled = true; PullWorld2Cam.enabled = false; break; default: break; } }
//Updating which world the player is in. //Setting the world variables to be off or on, private void WorldSwitch(WorldSwitching target) { //m_Judgement = 0; // m_IncreaseRate = 0.01f; switch (target.targetWorld) { case Worlds.Push: currentWorld = Worlds.Push; UpdatingWorldObjects(true); break; case Worlds.Pull: currentWorld = Worlds.Pull; UpdatingWorldObjects(false); break; case Worlds.Peace: break; default: break; } }