// Use this for initialization public override void Start() { base.Start(); this.bounds = GetComponent<Collider>().bounds; this.gameController = GameObject.FindGameObjectWithTag(BBSceneConstants.gameControllerTag).GetComponent<BBGameController>(); this.pathFinder = GetComponent<BBPathfinder>(); }
// Use this for initialization void Start() { this.gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent<BBGameController>(); }
// Use this for initialization void Start() { this.gameController = GameObject.FindGameObjectWithTag(BBSceneConstants.gameControllerTag).GetComponent<BBGameController>(); this.currentState = State.LOADING; }