private void Awake() { _creatureManager = GetComponentInParent <CreatureManager>(); _animator = GetComponentInParent <Animator>(); _creatureSearching = GetComponentInParent <CreatureSearching>(); _canCollideWithPlayer = _canCollideWithEnemy = true; }
private void Start() { _playerPosition = GameObject.FindGameObjectWithTag("Player").transform; _creatureStats = GetComponent <CreatureStats>(); _rb = GetComponent <Rigidbody2D>(); _creatureManager = GetComponent <CreatureManager>(); _creatureSearching = GetComponent <CreatureSearching>(); _joystick = GetComponent <CreatureJoystickDirection>(); _collision = GetComponentInChildren <CreatureCollision>(); _animator = GetComponent <Animator>(); }
private void Awake() { _stats = GetComponent <CreatureStats>(); _creatureManager = GetComponent <CreatureManager>(); _creatureSearching = GetComponent <CreatureSearching>(); }