예제 #1
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="name"></param>
    public override void On(string name)
    {
        SelectionName = name;
        switch (MenuSelection)
        {
        case 0:
            MainSelection = name;
            if (name == "Items")
            {
                GameObject.Find("List Panel").transform.FindChild("Quantity").gameObject.SetActive(true);
                ItemMenu.HideList();
                ItemMenu.setList(player.Items.GetUsables());
                ItemMenu.DisplayList();
            }
            else if (name == "Attack")
            {
                ItemMenu.HideList();
            }
            else if (name == "Ability")
            {
                GameObject.Find("List Panel").transform.FindChild("Quantity").gameObject.SetActive(false);
                ItemMenu.HideList();
                ItemMenu.setList(player.Data.Job.Abilities);
                ItemMenu.DisplayList();
            }
            else if (name == "Run")
            {
                ItemMenu.HideList();
            }
            break;

        default:
            break;
        }
    }
예제 #2
0
 private void fillWeapon()
 {
     foreach (Tuple <AbstractWeapon, int> i in ListWeapon)
     {
         Tuple <Item, int> ins = new Tuple <Item, int>(i.First as Item, i.Second);
         ActiveItems.Add(ins);
         Destroy(GameObject.Find("New Game Object"));
         Destroy(GameObject.Find("New Game Object"));
     }
     MenuScroll.setList(ActiveItems);
     MenuScroll.DisplayList();
 }