/// <summary> /// /// </summary> void Start() { //set up instances to our taxi and passenger scripts psngrScript = scrPassenger.Instance; txiDrvrScript = scrTaxiDriver.Instance; txiCntlr = scrTaxiController.Instance; }
/// <summary> /// /// </summary> void Start() { //set up instances to our taxi and passenger scripts psngrScript = scrPassenger.Instance; txiDrvrScript = scrTaxiDriver.Instance; Fare = new clsUIInfo(); Earnings = new clsUIInfo(); PasngMsg = new clsUIInfo(); Damage = new clsUIInfo(); Taxis = new clsUIInfo(); Fuel = new clsUIInfo(); }
/// <summary> /// Awake this instance. /// </summary> void Start() { psngrScript = scrPassenger.Instance; txiDrvrScript = scrTaxiDriver.Instance; txiCntlr = scrTaxiController.Instance; }
/// <summary> /// /// </summary> void Start() { taxi = scrTaxiDriver.Instance; passenger = scrPassenger.Instance; anim = GetComponent<Animator>(); }
/// <summary> /// /// </summary> void Awake() { Debug.Log("passenger awake"); scrPassenger.Instance = this; anim = GetComponent<Animator>(); Debug.Log("init psgr state mgr"); //set the initial state stateManager = new clsPassengerStateManager(clsPassengerStateManager.enState.Spawning); random = new System.Random(); fare = new clsFare(); //load state from previous level //in the future, this will be loaded dynamically. //for now, we will just set the value here intAvailableDestinations = 4; destinationQueue = new Queue<clsGameConstants.enLocations>(); RandomizeDestinationList(); fare.initialFare = 100.00f; //the passenger may already be on the taxi if (location == clsGameConstants.enLocations.InTheTaxi) { //the passenger is already in the taxi from the last level //we just need to select a destination SelectNewDestination(); } else { //the taxi is empty. we need a new destination and a new spawn point SelectNewDestination(); SelectNewSpawnLocation(); } Debug.Log("passenger awake end"); }
/// <summary> /// Start this instance. /// </summary> void Start() { psngrScript = scrPassenger.Instance; }