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>(); } }
public void SetLauncher(CharacterLaunchProjectile launcher) => _launcher = launcher;