public void Initialize()
        {
            SubMenu.MoveCategory = Category;
            SubMenu.Initialize();

            //Check if the button should be disabled
            Disabled = SubMenu.User.EntityProperties.IsMoveCategoryDisabled(Category);
        }
 public override void SetMoveCategory(Enumerations.MoveCategories moveCategory)
 {
     base.SetMoveCategory(moveCategory);
     if (SubMenu != null)
     {
         SubMenu.MoveCategory = MoveCategory;
         SubMenu.Initialize();
     }
 }
示例#3
0
        public void Initialize()
        {
            if (SubMenu != null)
            {
                SubMenu.MoveCategory = Category;
                SubMenu.Initialize();
            }

            //Check if the button should be disabled
            Disabled = BattleManager.Instance.EntityTurn.EntityProperties.IsMoveCategoryDisabled(Category);
        }