コード例 #1
0
ファイル: Minion.cs プロジェクト: TheDebugLog/TowerDefense
 void Awake()
 {
     if (_gameplaySceneController == null) {
         GameObject go = GameObject.FindGameObjectWithTag("GamePlayController");
         if(go != null) {
             _gameplaySceneController = go.GetComponent<GamePlaySceneController>();
         }
     }
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     gamePlaySceneController = (GamePlaySceneController)FindObjectOfType(typeof(GamePlaySceneController));
 }