// 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; } }
// Use this for initialization void Start() { mouseController = GameObject.FindObjectOfType <Controllers.Mouse> (); levelModel = Models.Levels.Instance; }