//public static UIWeaponAbilityTab GetInstance(){ return instance; }

        public void Awake()
        {
            instance    = this;
            thisObj     = gameObject;
            canvasGroup = thisObj.GetComponent <CanvasGroup>();
            if (canvasGroup == null)
            {
                canvasGroup = thisObj.AddComponent <CanvasGroup>();
            }

            thisObj.GetComponent <RectTransform>().anchoredPosition = new Vector3(0, 0, 0);
        }
Beispiel #2
0
 public void OnWeaponAbilityTab()
 {
     if (!UIWeaponAbilityTab.IsOn())
     {
         UIWeaponAbilityTab.TurnTabOn();
         _Hide();
     }
     else
     {
         UIWeaponAbilityTab.TurnTabOff();
     }
 }