コード例 #1
0
 private void Awake()
 {
     //シングルミッション
     if (MainGameController.gameNumber == 1)
     {
         smm = GameObject.Find("SingleMissionManager").GetComponent <SingleMissionManager>();
     }
 }
コード例 #2
0
 private void Awake()
 {
     if (MainGameController.gameNumber == 1)
     {
         smm = GameObject.Find("SingleMissionManager").GetComponent <SingleMissionManager>();
     }
     else if (MainGameController.gameNumber == 2)
     {
         ssm = GameObject.Find("SingleSurvivalManager").GetComponent <SingleSurvivalManager>();
     }
 }
コード例 #3
0
    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>();
    }
コード例 #4
0
 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)
     {
     }
 }