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>(); }
private void Awake() { _stats = GetComponent <CreatureStats>(); _manager = GetComponent <CreatureManager>(); }