// Use this for initialization private void Start() { maxHp = 100 * hpCount; hp = maxHp; Movement = GetComponent <MovementController> (); anim = GetComponent <Animator> (); Closet = GameObject.Find("ClosetEnemy").GetComponent <AimObject> (); }
// 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> (); }