Beispiel #1
0
    public void ShowAbilities()
    {
        selectedIndex = 1;

        UIQuickMenuCombat instance = Instantiate(UIFactory.uiQuickMenuCombatPrefab);

        instance.character        = avatarController.character;
        instance.includeWalk      = false;
        instance.includeDoNothing = false;

        menu.NavigateInto(instance);
    }
    public override void StartCombatTurn()
    {
        base.StartCombatTurn();

        combatPage                  = Instantiate(UIFactory.uiQuickMenuCombatPrefab);
        combatPage.character        = character;
        combatPage.includeWalk      = true;
        combatPage.includeDoNothing = true;
        characterMenu.Open(combatPage);

        AbilityBase walkAbility = Instantiate(CombatController.walkAbility);

        walkAbility.Initialize(character.gameObject);

        UIQuickMenuCastAbility instance = Instantiate(UIFactory.uiQuickMenuCastAbilityPrefab);

        instance.ability = walkAbility;
        characterMenu.NavigateInto(instance);

        CastAbility(walkAbility);
    }