// Use this for initialization
    void Start()
    {
        mouseController    = GameObject.FindObjectOfType <Controllers.Mouse>();
        uiTextForStructure = GetComponent <Text> ();

        if (uiTextForStructure == null)
        {
            Debug.LogError("Controllers.UIStats --> Cant find the ui text elements");
            return;
        }

        if (mouseController == null)
        {
            Debug.LogError("UISTATS: WTF?");
            return;
        }
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     mouseController = GameObject.FindObjectOfType <Controllers.Mouse> ();
     levelModel      = Models.Levels.Instance;
 }