//public UIMenu healthUI;

    private void Start()
    {
        // Activate the containers pannel.
        containersUI.Activate();

        // Activate the invetory if needed.
        InvetoryUI invUI = (InvetoryUI)invetoryUI;

        if (invUI.IsNeeded())
        {
            invetoryUI.Activate();
        }
        else
        {
            invetoryUI.Deactivate();
        }

        // Activate the health UI.
        //healthUI.Activate();
    }
 private void Start()
 {
     invetoryUI = FindObjectOfType <InvetoryUI>();
     invetoryUI.Deactivate();
 }
Esempio n. 3
0
 private void Start()
 {
     inventory = GetComponentInParent <InvetoryUI>();
 }