Beispiel #1
0
        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 OnPurchaseButton()
        {
            string text = playerPerk.PurchasePerk(perkItemList[selectID].perkID);

            if (text != "")
            {
                UIMessage.Display(text);
                return;
            }

            UpdatePerkItemList();

            UpdateDisplay();
        }
Beispiel #3
0
 public void _OnGameMessage(string msg)
 {
     UIMessage.Display(msg);
 }