private void Start() { _pw = FindObjectOfType <Patroille_walking>(); _stats = FindObjectOfType <PlayerStats>(); _enemy = FindObjectOfType <Enemy>(); anim = GameObject.Find("Enemy_Bear").GetComponentInChildren <Animator>(); }
private void Start() { // Stats. health = 30; damage = 6; speed = 1; // Components. _stats = GameObject.Find("Player").GetComponentInChildren <PlayerStats>(); _pw = FindObjectOfType <Patroille_walking>(); anim = GetComponentInChildren <Animator>(); _pw.speed = speed; _pw.moveSpeed = speed; }
private void Start() { _stats = FindObjectOfType <PlayerStats>(); _pw = FindObjectOfType <Patroille_walking>(); _enemy = FindObjectOfType <Enemy>(); }