Ejemplo n.º 1
0
    private Priest getInstance()
    {
        if (instance == null)
        {
            instance = this;

            HeroPool.GetInstance().SetHero(this, CommonConfig.Priest);

            LevelManager = new PriestLeveling(this, PriestConfig.Level);
        }
        return(instance);
    }
Ejemplo n.º 2
0
    void Start()
    {
        HeroPool.GetInstance().SetHero(this, CommonConfig.Priest);

        LevelManager = new PriestLeveling(this, PriestConfig.Level);

        animator = GetComponent <Animator>();

        LoadAttr();

        LoadSkill();

        particleEffect.Stop();

        InvokeRepeating("UpdateHeroTarget", 0f, 0.5f);
    }