Esempio 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++;
        }
    }
    public void Loading()
    {
        data = PlayerManager.Instance.SelectedBattle;

        // Get the BattleRoot Object and Load the UI
        if (battleRoot == null)
        {
            battleRoot = FindObjectOfType <BattleRootController>();
        }
        if (FCTInterface == null)
        {
            FCTInterface = (FloatingCombatTextInterface)MenuManager.Instance.Load("Interface_FloatingCombatText");
        }
        if (TapInterface == null)
        {
            TapInterface = (TapBattleInterface)MenuManager.Instance.Push("Interface_TapBattle");
        }

        // If the battleRoot object is not null go to the next phase
        if (battleRoot != null && FCTInterface != null && TapInterface != null)
        {
            Phase++;
        }
    }