public void RestartButtonClicked() { var stage = new Stage(StageData2.Entity.StageList[0]); DataManager.currentStage = stage; // 回転の制御を戻す Screen.autorotateToLandscapeLeft = false; Screen.autorotateToLandscapeRight = false; // 一応戻す RegisterButton.SetActive(true); // シーン遷移 gameSceneMng.ChangeScene(GameScenes.SeriousBalloon); }
public void PlayButtonClicked() { // 他の画面は回転してもOK Screen.autorotateToLandscapeLeft = true; Screen.autorotateToLandscapeRight = true; _gameSceneMng.ChangeScene(GameScenes.Home); }
public void OnTriggerEnter2D(Collider2D col) { if (col.name.Equals("flower")) { MapTileManager.FlowerCount(); if (SceneManager.GetActiveScene().name == "Stage1") { GameSceneManager.ChangeScene("Stage2"); } if (SceneManager.GetActiveScene().name == "Stage2") { GameSceneManager.ChangeScene("Stage3"); } if (SceneManager.GetActiveScene().name == "Stage3") { GameSceneManager.ChangeScene("Stage4"); } if (SceneManager.GetActiveScene().name == "Stage4") { GameSceneManager.ChangeScene("Stage5"); } if (SceneManager.GetActiveScene().name == "Stage5") { GameSceneManager.ChangeScene("Stage6"); } if (SceneManager.GetActiveScene().name == "Stage6") { GameSceneManager.ChangeScene("Died"); } } }
void MsgSCConfirmProcedure(BinaryReader br) { MsgSCConfirm msg = new MsgSCConfirm(br); if (msg.GetMessage() == MsgSCConfirm.MSG_OK) { gamescenemanager.userID = msg.GetUserID(); gamescenemanager.ChangeScene(); } else { Debug.Log("SC msg err !"); } }
public static void Dispatch(GameEvent.Type eventType, object arg = null) { switch (eventType) { case GameEvent.Type.ChangeScene: GameSceneManager.ChangeScene((GameScene)arg); return; } if (!dicSpecialEvent.ContainsKey(eventType) || dicSpecialEvent[eventType].Count == 0) { return; } for (int i = 0; i < dicSpecialEvent[eventType].Count; i++) { dicSpecialEvent[eventType][i](arg); } }
// NOTE: 参照先が無い関数に見えますが、FadeWIthChangeSceneから時差呼び出しされています。 public void GameSceneStart() { _gameSceneMng.ChangeScene(GameScenes.SeriousBalloon); }
public void RestartButtonClicked() { gameSceneMng.ChangeScene(GameScenes.SeriousBalloon); }
private void ResultSubproc() { gameSceneMng.ChangeScene(GameScenes.YarikomiResult); }
/// <summary> /// 改变到的场景 /// </summary> /// <param name="name">场景名</param> public void ChangeScene(string name) { m_GameSceneMgr.ChangeScene(name); }