Example #1
0
    private FireMage getInstance()
    {
        if (instance == null)
        {
            instance = this;

            HeroPool.GetInstance().SetHero(this, CommonConfig.FireMage);
            LevelManager = new MageLeveling(this, FireMageConfig.Level);
        }
        return(instance);
    }
Example #2
0
    new void Start()
    {
        LevelManager = new MageLeveling(this, 1);

        //TODO: init needed attrs
        ATK = new CharacterAttribute();


        range.BaseValue = 30f;
        InvokeRepeating("UpdateTarget", 0f, 0.5f);
        Debug.Log("In IceMage");
    }
Example #3
0
    void Start()
    {
        HeroPool.GetInstance().SetHero(this, CommonConfig.FireMage);
        LevelManager = new MageLeveling(this, FireMageConfig.Level);

        HeroAnimator = GetComponent <Animator>();
        Logger.Log(HeroAnimator);
        LoadAttr();

        particleEffect.Stop();
        fireEffect.Stop();

        LoadSkill();

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