protected virtual void Awake() { if (instance != null) { Destroy(gameObject); } instance = this; currentPanel = canvas.transform.GetChild(0).gameObject; }
private void Awake() { canvasInteractions = GetComponent <UIInteractions_Canvas>(); }