// Update is called once per frame
//	void Update () {
//
//	}

    public void SetPlayerNotification(string notice, Color color)
    {
        Debug.Log("SET NOTICE");
        if (isLocalPlayer)
        {
            noticeText.SetNotice(notice, color);
        }
    }
Example #2
0
 public void EnableBuy(GameObject petForSale, int price)
 {
     if (isLocalPlayer)
     {
         canBuy       = true;
         petAvailable = petForSale;
         buyPrice     = price;
         shopText.SetNotice(price + " coins! Press the " + control.input.Button("Buy") + " key to buy", Color.white);
     }
 }