コード例 #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>();
 }
コード例 #2
0
 private void Awake()
 {
     _playerMovement = GetComponent <PlayerMovement>();
     _playerSnapshot = GetComponent <PlayerSnapshot>();
 }