Ejemplo n.º 1
0
    void Awake()
    {
        Instance = this;

        gc = gameObject.GetComponent <GameController>();
        lightCounter.text = "" + lightcount.ToString("000");
    }
Ejemplo n.º 2
0
 void GetComponents()
 {
     lt    = gameObject.GetComponent <LightTracker>();
     scene = gameObject.GetComponent <SceneControl>();
 }