static public UIGMPanel GetInstance() { UIGMPanel self = UIManager.Singleton.GetUIWithoutLoad <UIGMPanel>(); if (self != null) { return(self); } self = UIManager.Singleton.LoadUI <UIGMPanel>("UI/UIGMPanel", UIManager.Anchor.Center); return(self); }
void OnGMButtonButton(GameObject obj) { UIGMPanel.GetInstance().ShowWindow(); }