// 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); }
// Use this for initialization void Start() { UITransform.SetActive(false); if (IsFish) { Human.SetActive(false); Fish.SetActive(true); } else { Fish.SetActive(false); Human.SetActive(true); } }
// Use this for initialization void Start() { UITransform.SetActive(false); }
public void ShowUI(bool bShouldShow) { UITransform.SetActive(bShouldShow); }