//_________________________________________PRIVATE METHODS void InitializePlayer() { _myRigidbody = GetComponent <Rigidbody>(); startDrag = _myRigidbody.drag; mainCamera = CameraShakeS.C.GetComponent <Camera>(); SetWeapon(); muzzleFlare = GetComponentInChildren <MuzzleFlareS>(); controller = GetComponent <ControlManagerS>(); inputDirection = new Vector3(1, 0, 0); _inputDirectionLast = new Vector2(0, 0); _inputDirectionCurrent = new Vector2(0, 0); }
//_________________________________________PRIVATE METHODS void InitializePlayer() { _myRigidbody = GetComponent<Rigidbody>(); startDrag = _myRigidbody.drag; mainCamera = CameraShakeS.C.GetComponent<Camera>(); SetWeapon(); muzzleFlare = GetComponentInChildren<MuzzleFlareS>(); controller = GetComponent<ControlManagerS>(); inputDirection = new Vector3(1,0,0); _inputDirectionLast = new Vector2(0,0); _inputDirectionCurrent = new Vector2(0,0); }