public void SetMoneyBarShowType(MoneyBarType type) { if (mMoneyBar != null) { mMoneyBar.SetShowType(type); } }
public void SetShowType(MoneyBarType showType) { Init(); for (int i = 0, j = (int)MoneyBarType.Max; i < j; i++) { GameObject go = getGameobjectBySortid(i); go.SetActive((MoneyBarType)i == showType); } grid.repositionNow = true; }