/// <summary> /// Grab the locations for spawn, exit, and cashier /// </summary> private void Start() { //Gather all the vector3 pos's we need for intelligent spawning and movement. GameObject entrance = GameObject.FindGameObjectWithTag(GameTags.ENTRANCE_TAG); mCustomerSpawnLocation = GameObjectExtensions.FindComponentInChildWithTag <Transform>(entrance, GameTags.SPAWN_TAG).position; CustomerExitLocation = GameObjectExtensions.FindComponentInChildWithTag <Transform>(entrance, GameTags.NAV_LOC_TAG).position; CashierLocation = GameObject.FindGameObjectWithTag(GameTags.CASHIER_TAG).FindComponentInChildWithTag <Transform>(GameTags.NAV_LOC_TAG).position; mShelves = GameObject.FindGameObjectsWithTag(GameTags.SHELF_TAG); }