Наследование: SkillBase
Пример #1
0
    void Start()
    {
        skill[0] = new skill1();
        skill[1] = new skill2();

        skill[0].init(this.GetComponent <AudioSource>(), audio, this.GetComponent <Move1>(), this, this.gameObject);
        skill[1].init(this.GetComponent <AudioSource>(), audio, this.GetComponent <Move1>(), this, this.gameObject);
    }
Пример #2
0
    void Start()
    {
        skill[0] = new skill1();
        skill[1] = new skill2();

        skill[0].init(this.GetComponent<AudioSource>(),audio,this.GetComponent<Move1>(),this,this.gameObject);
        skill[1].init(this.GetComponent<AudioSource>(), audio, this.GetComponent<Move1>(), this,this.gameObject);
    }