void Awake() { instance = this; thisObj = gameObject; rectT = thisObj.GetComponent <RectTransform>(); canvasGroup = thisObj.GetComponent <CanvasGroup>(); if (canvasGroup == null) { canvasGroup = thisObj.AddComponent <CanvasGroup>(); } }
void OnUnitDeployment(bool flag) { if (flag) { UIUnitDeployment.Show(); UIHUD.HideInstant(); UISelectedUnitInfo.HideInstant(); } else { //UIUnitDeployment.Hide(); UIHUD.Show(); UISelectedUnitInfo.Show(); } }