コード例 #1
0
ファイル: scrDashBoard.cs プロジェクト: heyjohnnyc/mikulus
 /// <summary>
 /// 
 /// </summary>
 void Start()
 {
     //set up instances to our taxi and passenger scripts
     psngrScript = scrPassenger.Instance;
     txiDrvrScript = scrTaxiDriver.Instance;
     txiCntlr = scrTaxiController.Instance;
 }
コード例 #2
0
ファイル: scrDashBoardCam.cs プロジェクト: heyjohnnyc/mikulus
    /// <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();
    }
コード例 #3
0
ファイル: scrDebugSlate.cs プロジェクト: heyjohnnyc/mikulus
 /// <summary>
 /// Awake this instance.
 /// </summary>
 void Start()
 {
     psngrScript = scrPassenger.Instance;
     txiDrvrScript = scrTaxiDriver.Instance;
     txiCntlr = scrTaxiController.Instance;
 }
コード例 #4
0
 /// <summary>
 /// 
 /// </summary>
 void Start()
 {
     taxi = scrTaxiDriver.Instance;
     passenger = scrPassenger.Instance;
     anim = GetComponent<Animator>();
 }
コード例 #5
0
ファイル: scrPassenger.cs プロジェクト: heyjohnnyc/mikulus
    /// <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");
    }
コード例 #6
0
ファイル: scrTaxiDriver.cs プロジェクト: heyjohnnyc/mikulus
 /// <summary>
 /// Start this instance.
 /// </summary>
 void Start()
 {
     psngrScript = scrPassenger.Instance;
 }