Ejemplo n.º 1
0
 public void EnterStation()
 {
     state = BusState.Pickup;
     drive.Toggle();
     StartCoroutine(StatsOpen());
     audioManager.PlaySound(AudioManager.Sound.Stop);
 }
Ejemplo n.º 2
0
    void Start()
    {
        time                = 0;
        passengers          = 0;
        statusColor         = new Color(73, 238, 21, 1);
        noPassengers.text   = (passengers < 10 ? "0" : "") + passengers;
        multiplierText.text = "x1";
        rb           = GetComponent <Rigidbody>();
        drive        = GetComponent <RearWheelDrive>();
        statusMes    = GetComponent <StatusMessages>();
        audioManager = FindObjectOfType <AudioManager>();

        foreach (GameObject group in passengerGroups)
        {
            group.SetActive(false);
        }

        drive.Toggle();
        StartCoroutine(LevelStart());
    }