Пример #1
0
    private void saveTest()
    {
        PioneerManager.getInstance().finished();
        //HealItemMasterManager.getInstance().updateProgress();

        Debug.Log("heal " + HealItemMasterManager.getInstance().getHealItemFromId(0).getHeal());
    }
Пример #2
0
    private void progressData()
    {
        var progress = HealItemMasterManager.getInstance().getHealItemFromId(0);

        for (int i = 0; i < 100; i++)
        {
            progress.use(hero);
        }
    }
Пример #3
0
    public override void report(int worldId)
    {
        this.healItem = HealItemMasterManager.getInstance().getHealItemBuilderFromId(OBSERVE_ITEM_ID);
        HealItemProgress progress = HealItemMasterManager.getInstance().getProgress(OBSERVE_ITEM_ID);

        progress.Heal += reportHealValue();
        progress.Level = reportItemLevel(progress.Heal);
        ObserverHelper.saveToFile <HealItemProgress>(progress, "HealItemProgress", OBSERVE_ITEM_ID, worldId);
    }
Пример #4
0
 public void loadProgresses(int id)
 {
     EnemyMasterManager.getInstance().addProgress(id);
     AttackSkillMasterManager.getInstance().addProgress(id);
     HealSkillMasterManager.getInstance().addProgress(id);
     BufSkillMasterManager.getInstance().addProgress(id);
     DebufSkillMasterManager.getInstance().addProgress(id);
     HealItemMasterManager.getInstance().addProgress(id);
     ItemMaterialMasterManager.getInstance().addProgress(id);
 }
Пример #5
0
        public static List <HealItem> creatRandomLevelHealItem(int level, int orderNumber)
        {
            var healItems = new List <HealItem>();
            var registeredHealItemsList = HealItemMasterManager.getInstance().getHealItemsFromLevel(level);

            for (int i = 0; i < orderNumber && registeredHealItemsList.Count > 0; i++)
            {
                int rand = Random.Range(0, registeredHealItemsList.Count);
                healItems.Add(registeredHealItemsList[rand]);
                registeredHealItemsList.Remove(registeredHealItemsList[rand]);
            }
            return(healItems);
        }