void Awake() { _move = GetComponent <CMoveTest> (); _chase = GetComponent <chase> (); _attack = GetComponent <Attack> (); _Bar = GameObject.Find(Bar_num).GetComponent <Image> (); }
void Start() { pAgent = GetComponent <NavMeshAgent>(); pRb = GetComponent <Rigidbody>(); pChase = GetComponent <chase>(); pCol = GetComponent <Collider>(); anim = GetComponentInChildren <Animator>(); }
// Use this for initialization void Start() { boxCollider = GetComponent <BoxCollider>(); playerObject = GameObject.FindGameObjectWithTag("Player"); //AI1 = GameObject.Find("Protect"); //AI1 = GameObject.Find("Protect(1)"); AI1Script = AI1.GetComponent <chase>(); AI2Script = AI2.GetComponent <chase>(); }
private void Start() { Chase = GetComponent <chase>(); }