Пример #1
0
 void Awake()
 {
     instance    = this;
     thisObj     = gameObject;
     rectT       = thisObj.GetComponent <RectTransform>();
     canvasGroup = thisObj.GetComponent <CanvasGroup>();
     if (canvasGroup == null)
     {
         canvasGroup = thisObj.AddComponent <CanvasGroup>();
     }
 }
Пример #2
0
 void OnUnitDeployment(bool flag)
 {
     if (flag)
     {
         UIUnitDeployment.Show();
         UIHUD.HideInstant();
         UISelectedUnitInfo.HideInstant();
     }
     else
     {
         //UIUnitDeployment.Hide();
         UIHUD.Show();
         UISelectedUnitInfo.Show();
     }
 }