示例#1
0
 void Awake()
 {
     _characterData     = GetComponent <CharacterData>();
     _characterMovement = GetComponent <CharacterMovement>();
     _characterRotation = GetComponent <CharacterRotation>();
     _characterAttack   = GetComponent <CharacterAttack>();
     _characterAnimCtrl = GetComponent <CharacterAnimationController>();
     _characterLauncher = GetComponent <CharacterLaunchProjectile>();
     _isPlayer          = gameObject.CompareTag("Player");
     if (_isPlayer)
     {
         _playerInput = GetComponent <PlayerInput>();
     }
 }
示例#2
0
 public void SetLauncher(CharacterLaunchProjectile launcher) => _launcher = launcher;