コード例 #1
0
 private void Awake()
 {
     _creatureManager      = GetComponentInParent <CreatureManager>();
     _animator             = GetComponentInParent <Animator>();
     _creatureSearching    = GetComponentInParent <CreatureSearching>();
     _canCollideWithPlayer = _canCollideWithEnemy = true;
 }
コード例 #2
0
 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>();
 }
コード例 #3
0
 private void Awake()
 {
     _stats             = GetComponent <CreatureStats>();
     _creatureManager   = GetComponent <CreatureManager>();
     _creatureSearching = GetComponent <CreatureSearching>();
 }