// 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(); } }
void Start() { carro = FindObjectOfType <CarroUser2> (); }