Example #1
0
    private bool lowFuel;     // is the car low on fuel? Low fuel <= 25%

    private void Start()
    {
        tileManager = CTileManager.instance;
        car         = CCarMovement.instance;
        spawnLevel  = Random.Range(minNormalLevel, maxNormalLevel);
        lowFuel     = false;
    }
Example #2
0
    private int maxRunOverPeople; // max number of people the player can run over in GoodGuyMode

    // Use this for initialization
    void Start()
    {
        car = CCarMovement.instance;
        maxRunOverPeople = 5;
        playMode         = PlayerPrefs.GetInt("PlayMode");
    }
Example #3
0
 // called before start
 void Awake()
 {
     instance = this;
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     car        = CCarMovement.instance;
     distanceSt = "Distance: ";
     fuelSt     = "Fuel: ";
 }