Exemplo n.º 1
0
    void Loading()
    {
        // Get the BattleRoot Object
        if (battleRoot == null)
        {
            battleRoot = GameObject.FindObjectOfType <BattleRootController>();
        }
        if (FCTInterface == null)
        {
            FCTInterface = (FloatingCombatTextInterface)MenuManager.Instance.Load("Interface_FloatingCombatText");
        }
        if (battleInterface == null)
        {
            battleInterface = (BossBattleInterface)MenuManager.Instance.Push("Interface_BossBattle");
        }
        if ((selector == null) && (battleRoot != null))
        {
            selector = (ActorSelector)battleRoot.GetSelector();
        }

        data = playerMan.SelectedBattle;

        playerMan.CurrentLeaderSkill = data.Party[0].data.LeadershipSkill;

        // If the battleRoot object isn't null goto the next phase
        if (battleRoot != null /* && battleInterface != null*/)
        {
            Phase++;
        }
    }
Exemplo n.º 2
0
    public void Initialize(int index, Hero hero, BossBattleInterface UIinterface)
    {
        this.UIinterface = UIinterface;
        skill            = hero.Skills[index];
        cooldown         = hero.Skills[index]._cooldown;

        SetCooldown();

        highlight = GetComponent <Image>();

        skillImage.sprite = skill.LoadSprite();
        _vines            = GetComponentsInChildren <VineMovement>().ToList();

        tooltip.Initialize(skill, hero);

        passiveNotifier.SetActive(skill.skillType == SkillTypes.Passive);
    }