//----------------------
    //PUBLIC METHODS
    //----------------------

    public void Initialize()
    {
        //Find and assign
        InvPanel         = GameObject.FindGameObjectWithTag("InventoryPanel").GetComponent <InventoryPanel>();
        CharPanel        = GameObject.FindGameObjectWithTag("CharacterPanel").GetComponent <CharacterPanel>();
        FinLevelPanel    = GameObject.FindGameObjectWithTag("FinishedLevelPanel").GetComponent <FinishLevelPanel>();
        NotificationText = GameObject.FindGameObjectWithTag("PickupText").GetComponent <Text>();

        //Initialize
        InvPanel.Initialize();
        CharPanel.Initialize();
        FinLevelPanel.Initialize();

        //Hide the panels
        InvPanel.gameObject.SetActive(false);
        CharPanel.gameObject.SetActive(false);
        FinLevelPanel.gameObject.SetActive(false);
        NotificationText.gameObject.SetActive(false);
    }
Esempio n. 2
0
 public void Init()
 {
     m_InventoryPanel.Initialize();
     m_CharacterPanel.Initialize();
 }