private void Update() { // if player is online but NOT associated with the machine running this if (GeneralMethods.IsNetworkConnectedButNotLocalClient(netIdentity)) { // DONT continue code return; } if (Input.GetKeyDown(KeyCode.H)) { //GameStateModeTransitionEvent.Trigger(GameStateMode.VisualNovel, ActionProgressType.Started); ReturnToHavenEvent.Trigger(); } if (Input.GetKeyDown(KeyCode.P)) { PartyWipeEvent.Trigger(); } /*if (Input.GetKeyDown(KeyCode.N)) * { * Debug.Log("((NetworkManagerCustom)NetworkManager.singleton).numPlayers = " + * ((NetworkManagerCustom)NetworkManager.singleton).numPlayers); * } * if (Input.GetKeyDown(KeyCode.M)) * { * Debug.Log("((NetworkManagerCustom)NetworkManager.singleton).connectedPlayers.Count = " + * ((NetworkManagerCustom)NetworkManager.singleton).connectedPlayers.Count); * }*/ }
public void OnMMEvent(ReturnToHavenEvent eventType) { // destroy the currenly instantiated level arena arenaCoordinator.DestoryArena(); // resets all arena run's progress data to new run ResetArenaProgress(); }
public void OnMMEvent(ReturnToHavenEvent eventType) { // deactivate object SetObjectActivation(false); }