Exemple #1
0
 // Use this for initialization
 private void Start()
 {
     maxHp    = 100 * hpCount;
     hp       = maxHp;
     Movement = GetComponent <MovementController> ();
     anim     = GetComponent <Animator> ();
     Closet   = GameObject.Find("ClosetEnemy").GetComponent <AimObject> ();
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     Hp           = MaxHp;
     anim         = GetComponent <Animator> ();
     nav          = GetComponent <NavMeshAgent> ();
     Player       = GameObject.Find("Player").gameObject;
     ClosetEnemy  = GameObject.Find("ClosetEnemy").GetComponent <AimObject>();
     PlayerStatus = Player.GetComponent <Status> ();
     Time         = GameObject.Find("Time Manager").GetComponent <TimeSet> ();
 }