protected virtual void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
        }
        instance = this;

        currentPanel = canvas.transform.GetChild(0).gameObject;
    }
Esempio n. 2
0
 private void Awake()
 {
     canvasInteractions = GetComponent <UIInteractions_Canvas>();
 }