예제 #1
0
 // if using this to hide UI, affordableamount is not needed.
 public void ShowUI(bool bShouldShow, int AffordableAmount)
 {
     if (bShouldShow)
     {
         UI.InitializeParameters(this.IsFish, this.Amount, AffordableAmount);
     }
     UITransform.SetActive(bShouldShow);
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     UITransform.SetActive(false);
     if (IsFish)
     {
         Human.SetActive(false);
         Fish.SetActive(true);
     }
     else
     {
         Fish.SetActive(false);
         Human.SetActive(true);
     }
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     UITransform.SetActive(false);
 }
예제 #4
0
 public void ShowUI(bool bShouldShow)
 {
     UITransform.SetActive(bShouldShow);
 }