public override void Execute(Machine machine) { if (machine.IfInteracted()) { GameSystem.IStarted(); CGManager.Unlock(machine.GetComponent <ShowCg>().index); machine.GetComponent <ShowCg> ().transform.GetChild(0).gameObject.SetActive(true); machine.GetComponent <ShowCg> ().transform.GetChild(0).gameObject.transform.position = new Vector3(Player.current.GetXPosition(), 0, 0); } }
private void OnLostConnection() { loggedIn = false; CGManager.Stop(); if (m_preventLoginMessage == 0 && (Level.currentLevel != 0 || moduleStory.inStoryMode || moduleStory.loading)) { Game.paused = true; moduleGlobal.ShowMessageBox_(10, 1, b => { ReturnToLogin(true); }); } else if (m_preventLoginMessage != 1) { ReturnToLogin(true); } }