Esempio n. 1
0
    public void InitMainScene()
    {
        ManaMax     = 500f + chosenAccount.statKNG * 40;
        ManaCurrent = ManaMax;

        buffSystem = new BuffHandler(GameObject.Find("GCDBar").transform.position);

        chosenAccount.RefreshStats();
        myBlackScreen = GameObject.Find("BlackScreen");
        mySpellIcon   = GameObject.Find("MySpellIcon");
        recount       = new Recount();
        myEnemy       = WorldMapCore.WMCore.adventureInfoHandler.GetEncounter(GameCore.Core.chosenAdventure, GameCore.difficulty);
        myEnemy.InitEncounter();

        chosenChampion = DescendantPanelCore.DPCore.pickedChampion;
        _mytip         = GameObject.Find("Tooltip");
        if (chosenAccount.myTalentTree != null)
        {
            myTree = chosenAccount.myTalentTree;
        }
        else
        {
            myTree = new TalentTree(chosenChampion);
            myTree.DefaultTree();
        }
        GameObject.Find("ChampionPortrait").GetComponent <Image>().sprite = Champion.GetPortrait(chosenChampion);

        myCaster = new Caster(myTree);

        InitSpells();
        InitItems();

        UpdateStats();
        ApplyAuras();
    }