private void Awake() { //シングルミッション if (MainGameController.gameNumber == 1) { smm = GameObject.Find("SingleMissionManager").GetComponent <SingleMissionManager>(); } }
private void Awake() { if (MainGameController.gameNumber == 1) { smm = GameObject.Find("SingleMissionManager").GetComponent <SingleMissionManager>(); } else if (MainGameController.gameNumber == 2) { ssm = GameObject.Find("SingleSurvivalManager").GetComponent <SingleSurvivalManager>(); } }
private void Start() { //シングルミッション if (MainGameController.gameNumber == 1) { smm = GameObject.Find("SingleMissionManager").GetComponent <SingleMissionManager>(); } else if (MainGameController.gameNumber == 2) { ssm = GameObject.Find("SingleSurvivalManager").GetComponent <SingleSurvivalManager>(); } sm = GameObject.Find("ScoreManager").GetComponent <ScoreManager>(); }
private void Awake() { //戦車選択画面 try { if (MainGameController.gameNumber == 1) { smm = GameObject.Find("SingleMissionManager").GetComponent <SingleMissionManager>(); } else if (MainGameController.gameNumber == 2) { ssm = GameObject.Find("SingleSurvivalManager").GetComponent <SingleSurvivalManager>(); } sm = GameObject.Find("ScoreManager").GetComponent <ScoreManager>(); } catch (NullReferenceException) { } }