Esempio n. 1
0
 void Awake()
 {
     if (_gameplaySceneController == null) {
         GameObject go = GameObject.FindGameObjectWithTag("GamePlayController");
         if(go != null) {
             _gameplaySceneController = go.GetComponent<GamePlaySceneController>();
         }
     }
 }
 // Use this for initialization
 void Start()
 {
     gamePlaySceneController = (GamePlaySceneController)FindObjectOfType(typeof(GamePlaySceneController));
 }