private void Awake() { item_prefabs[(int)Item.Type.Equipment] = UIUtil.FindChild <UIEquipItem>(transform, "ItemPrefabs/EquipItem"); item_prefabs[(int)Item.Type.Expendable] = UIUtil.FindChild <UIPotionItem>(transform, "ItemPrefabs/PotionItem"); item_prefabs[(int)Item.Type.Key] = UIUtil.FindChild <UIKeyItem>(transform, "ItemPrefabs/KeyItem"); close = UIUtil.FindChild <Button>(transform, "BottomBar/Close"); item_info = UIUtil.FindChild <UIItemInfo>(transform, "ItemInfo"); player_info = UIUtil.FindChild <UIPlayerInfo>(transform, "PlayerInfo"); player_info.gameObject.SetActive(true); }
public void UpdatePlayerUI(UIPlayerInfo info, string text) { if (player_info == null || player_info.Length < (int)UIPlayerInfo.counter) { return; } if (player_info[(int)info] == null) { return; } player_info[(int)info].text = text; }
private void Awake() { Instance = this; }
void Awake() { Instance = this; }
public void UpdatePlayerUI(UIPlayerInfo info, string text) { CreateInGameRef(); In_Game.UpdatePlayerUI(info, text); }