Exemple #1
0
 // Use this for initialization
 void Start()
 {
     previousTimeScale = 0f;
     paused            = false;
     carroScript       = carro.GetComponent <CarroUser2>();
     carSpawners       = city.transform.Find("CarSpawners").gameObject;
     Debug.Log("Found spawners!: " + carSpawners.name);
     gm = gameObject.GetComponent <GameManager> ();
     if (inicio)
     {
         DeactivateStuff();
     }
     else
     {
         ActivateInit();
     }
 }
Exemple #2
0
 void Start()
 {
     carro = FindObjectOfType <CarroUser2> ();
 }