void Awake() { //スクリプト取得 HPDir = this.GetComponent <HPDirectorScript>(); ASScript = Opponent.GetComponent <ArtsStateScript>(); CEvent = this.GetComponent <ColliderEvent>(); SEScript = this.GetComponent <SetEffectScript>(); }
// Use this for initialization void Start() { //ディレクタースクリプト取得 ASScriptEne = Pcont.fightEnemy.GetComponent <ArtsStateScript>(); CEvent = this.GetComponent <ColliderEvent>(); CEventEne = Pcont.fightEnemy.GetComponent <ColliderEvent>(); HPDir = this.GetComponent <HPDirectorScript>(); DEGScript = this.GetComponent <DebugGetEnemyScript>(); SEScript = this.GetComponent <SetEffectScript>(); GScript = this.GetComponent <GuardScript>(); //コライダーのスクリプトを取得 for (int i = 0; i < CEvent.HClid.Count; i++) { col.Add(CEvent.HClid[i]); react.Add(col[i].GetComponent <ColliderReact>()); } AI = gameObject.GetComponent <EnemyAI>(); }