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>();
 }
Exemple #2
0
 private void Awake()
 {
     _stats             = GetComponent <CreatureStats>();
     _creatureManager   = GetComponent <CreatureManager>();
     _creatureSearching = GetComponent <CreatureSearching>();
 }
Exemple #3
0
 private void Awake()
 {
     _stats   = GetComponent <CreatureStats>();
     _manager = GetComponent <CreatureManager>();
 }