Exemplo n.º 1
0
        /// <summary>
        /// データを設定します
        /// </summary>
        /// <param name="level">世界のレベル</param>
        public void setDatas(int level)
        {
            this.jobs       = JobMasterManager.getInstance().getJobsFromLevel(level);
            this.humanities = HumanityMasterManager.getInstance().getHumanitiesFromLevel(level);
            this.identities = IdentityMasterManager.getInstance().getIdentitiesFromLevel(level);
            Vector3 viewPos = new Vector3(200, Screen.height / 2);

            selectView = Instantiate(selectViewPrefab, viewPos, new Quaternion(0, 0, 0, 0)).GetComponent <SelectViewContainer>();
            Debug.Log(CanvasGetter.getCanvasElement().transform);
            selectView.transform.SetParent(CanvasGetter.getCanvasElement().transform);

            inputJob();
        }
Exemplo n.º 2
0
    private void setBattle()
    {
        en = EnemyMasterManager.getInstance().getEnemyFromId(0);
        var list = new List <Identity>()
        {
            IdentityMasterManager.getInstance().getIdentityFromId(0)
        };

        //hero = new Player(JobMasterManager.getJobFromId(0),HumanityMasterManager.getHumanityFromId(0), list,con);

        //hero.addSkill(ReactionSkillMasterManager.getReactionSkillFromId(0));
        //hero.addSkill(ReactionSkillMasterManager.getReactionSkillFromId(1));
        //      hero.addSkill(AttackSkillMasterManager.getInstance().getAttackSkillFromId(0));
        //      hero.addSkill(AttackSkillMasterManager.getInstance().getAttackSkillFromId(1));
        //hero.addSkill(MoveSkillMasterManager.getMoveSkillFromId(0));
        //hero.addSkill(BufSkillMasterManager.getBufSkillFromId(0));
        //hero.addSkill(DebufSkillMasterManager.getDebufSkillFromId(0));
        //hero.addSkill(HealSkillMasterManager.getHealSkillFromId(0));
        //hero.addSkill(DebufSkillMasterManager.getDebufSkillFromId(2));
        //hero.addSkill(AttackSkillMasterManager.getInstance().getAttackSkillFromId(7));

        con.setCharacter(hero);
    }