Пример #1
0
    // 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>();
    }
Пример #2
0
 void Awake()
 {
     contl     = GameObject.Find("FighterComtrol");
     InScript  = contl.GetComponent <InstanceScript>();
     DGEScript = this.GetComponent <DebugGetEnemyScript>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     DGEScript = this.GetComponent <DebugGetEnemyScript>();
 }