Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        if (controllerObjetivos == null)
        {
            controllerObjetivos = ControllerObjetivos.Instance;
        }

        canvasObject = GameObject.Find("UI-Canvas");

        if (canvasObject != null)
        {
            canvasUI = canvasObject.GetComponent <Canvas>();
        }
    }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }