Example #1
0
    void Start()
    {
        LevelManager = new ArcherLeveling(this, ArcherConfig.Level);
        LoadAttr();
        LoadSkill();
        HeroPool.GetInstance().SetHero(this, CommonConfig.Archer);
        HeroAnimator = GetComponent <Animator>();
        particleEffect.Stop();
        arrowEffect.Stop();

        InvokeRepeating("UpdateTarget", 0f, 0.5f);
    }
Example #2
0
    private Archer getInstance()
    {
        if (instance == null)
        {
            instance = this;

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

            LevelManager = new ArcherLeveling(this, ArcherConfig.Level);
        }
        return(instance);
    }