// Start is called before the first frame update void Start() { chaseBrother = gameObject.GetComponent <ChaseBrother>(); chasePlayer = gameObject.GetComponent <ChasePlayer>(); imDead = false; agentCollider = GetComponent <Collider>(); }
// 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>(); }