Esempio n. 1
0
 private void Awake()
 {
     _playerMovement   = GetComponent <PlayerMovement>();
     _playerShooting   = GetComponentInChildren <PlayerShooting>();
     _playerSnapshot   = GetComponent <PlayerSnapshot>();
     _playerHealth     = GetComponent <PlayerHealth>();
     _playerPrediction = GetComponent <PlayerPrediction>();
     _shootableMask    = LayerMask.GetMask("Shootable");
     _rigidBody        = GetComponent <Rigidbody>();
 }
Esempio n. 2
0
 private void Awake()
 {
     _playerMovement = GetComponent <PlayerMovement>();
     _playerSnapshot = GetComponent <PlayerSnapshot>();
 }