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); }
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); }