예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     chaseBrother  = gameObject.GetComponent <ChaseBrother>();
     chasePlayer   = gameObject.GetComponent <ChasePlayer>();
     imDead        = false;
     agentCollider = GetComponent <Collider>();
 }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        if (this.gameObject.tag == "Blue")
        {
            chaseBrother = gameObject.GetComponent <ChaseBrother>();
        }

        else if (this.gameObject.tag == "Orange")
        {
            chasePlayer = gameObject.GetComponent <ChasePlayer>();
        }
        imDead        = false;
        agentCollider = GetComponent <Collider>();
    }