Exemplo n.º 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);
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     UITransform.SetActive(false);
 }
Exemplo n.º 4
0
 public void ShowUI(bool bShouldShow)
 {
     UITransform.SetActive(bShouldShow);
 }