void Awake() { //スクリプト取得 HPDir = this.GetComponent <HPDirectorScript>(); ASScript = Opponent.GetComponent <ArtsStateScript>(); CEvent = this.GetComponent <ColliderEvent>(); SEScript = this.GetComponent <SetEffectScript>(); }
//攻撃時の性能を取得 private void CreateArtsSatet(ArtsStateScript arts, int type) { hitColSta.damage = arts.Damage(type); hitColSta.attri = arts.Attri(type); hitColSta.startCorr = arts.StartCorr(type); hitColSta.comboCorr = arts.CombCorr(type); hitColSta.atkLev = arts.AtkLev(type); hitColSta.blockStun = arts.BlockStun(type); hitColSta.hitStun = arts.HitStun(type); }
// 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>(); }
void Awake() { Pcont = this.GetComponent <PlayerController>(); ASScript = this.GetComponent <ArtsStateScript>(); }