コード例 #1
0
ファイル: Rd_en_AI.cs プロジェクト: archarry86/2DGame
 // Use this for initialization
 void Start()
 {
     time           = Time.time + Timetosetstate;
     controller     = this.GetComponent <Red_en_states> ();
     enemyHealth    = this.GetComponent <EnemyHealth> ();
     pursuingpoints = false;
 }
コード例 #2
0
ファイル: EnemyHealth.cs プロジェクト: archarry86/2DGame
    // Use this for initialization
    void Start()
    {
        animator   = GetComponent <Animator> ();
        controller = GetComponent <Red_en_states> ();

        transform = GetComponent <Transform> ();
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        _timetoshot   = Time.time;
        _encontroller = this.GetComponent <Red_en_states> ();


        adudiosource = this.GetComponent <AudioSource> ();
        var MyColiders = this.GetComponents <Collider2D> ();
    }