示例#1
0
    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);
    }
示例#2
0
 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;
 }
示例#3
0
 private void Awake()
 {
     Instance = this;
 }
示例#4
0
 void Awake()
 {
     Instance = this;
 }
示例#5
0
 public void UpdatePlayerUI(UIPlayerInfo info, string text)
 {
     CreateInGameRef();
     In_Game.UpdatePlayerUI(info, text);
 }