예제 #1
0
 //根据玩家位置显示当前拥有的画笔
 public void showUIButton(int inkNum)
 {
     if (inkNum == 1)
     {
         WindButton.SetActive(true);
     }
     else if (inkNum == 2)
     {
         FireButton.SetActive(true);
     }
     else
     {
         print("UI show button has wrong input parameter");
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     InkMelt = MiddleInklast.GetComponent <Image>().material;
     WindButton.SetActive(false);
     FireButton.SetActive(false);
 }