/// <summary> /// Initializes a new instance of the <see cref="GroundTypeData"/> class. /// </summary> /// <param name="meanHeight">Height of the mean.</param> /// <param name="amplitude">The amplitude.</param> /// <param name="color">The color.</param> /// <param name="groundType">Type of the ground.</param> /// <param name="behaviour">The behaviour.</param> /// <param name="isAllowed">if set to <c>true</c> [is allowed].</param> public GroundTypeData(float meanHeight, float amplitude, Color color, GroundType groundType, GroundBehaviour behaviour, bool isAllowed = false) { MeanHeight = meanHeight; Amplitude = amplitude; Color = color; GroundType = groundType; Behaviour = behaviour; IsAllowed = isAllowed; }
// Constructor public FreeWalkState( InputController inputController, CharacterController characterController, GameObject characterModel, Transform mainCameraTransform, GroundBehaviour groundBehaviour, Vector3 velocity ) { _inputControllerBehaviour = inputController; _characterController = characterController; _characterModel = characterModel; _mainCameraTransform = mainCameraTransform; _groundBehaviour = groundBehaviour; _velocity = velocity; }