private void InitController()
 {
     if (GameObject.FindGameObjectWithTag("PlayerUnit") != null && gsm.GetStateName() != null && (gsm.GetStateName() == typeScene.Test.ToString() || gsm.GetStateName() == typeScene.Stage.ToString()))
     {
         PSC = GameObject.FindGameObjectWithTag("PlayerUnit").GetComponent <PlayerStatusController>();
     }
 }
Beispiel #2
0
        //プレイヤー機体の処理
        #region
        public void CreatePlayerUnit()
        {
            Init();
            if (gsm.GetStateName() == typeScene.Test.ToString())
            {
                Controller           = GameObject.FindGameObjectWithTag("ActiveController");
                obj                  = Instantiate(PUnit, Controller.transform.position, Controller.transform.rotation);
                obj.transform.parent = Controller.transform;
                PUnit.transform.Rotate(45, 0, 0);

                Debug.Log("生成終了");
            }
        }
Beispiel #3
0
 public void StateUpdate()
 {
     Debug.Log("ロードシーン" + manager.GetStateName());
     StartCoroutine(SceneLoading(manager.GetStateName()));
 }