Inheritance: MonoBehaviour
Exemplo n.º 1
0
 void Awake()
 {
     _move   = GetComponent <CMoveTest> ();
     _chase  = GetComponent <chase> ();
     _attack = GetComponent <Attack> ();
     _Bar    = GameObject.Find(Bar_num).GetComponent <Image> ();
 }
Exemplo n.º 2
0
 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>();
 }
Exemplo n.º 4
0
 private void Start()
 {
     Chase = GetComponent <chase>();
 }