예제 #1
0
    private void Awake()
    {
        MagazineSize = 1;
        _ammo        = MagazineSize;

        _acceptedAngleFromBehindInRadians = _acceptedAngleFromBehind * Mathf.Deg2Rad;
        _playerPosition    = FindObjectOfType <Player>().transform;
        _takeOverBehaviour = FindObjectOfType <Player>().GetComponent <TakeOverBehaviour>();
    }
예제 #2
0
 private void Awake()
 {
     MovementBehaviour        = GetComponent <MovementBehaviour>();
     ShootingBehaviour        = GetComponent <ShootingBehaviour>();
     _stealthBehaviour        = GetComponent <StealthBehaviour>();
     _takeOverBehaviour       = GetComponent <TakeOverBehaviour>();
     _interActionBehaviour    = GetComponent <InterActionBehavior>();
     HealthBehaviour          = GetComponent <HealthBehaviour>();
     _defendingBehaviour      = GetComponent <DefendingBehaviour>();
     _swithcTakeOverBehaviour = GetComponent <SwitchTakeOverBehaviour>();;
 }
예제 #3
0
 private void Awake()
 {
     _takeOverBehaviour = GetComponent <TakeOverBehaviour>();
 }