gimm270_07_photogallery/Assets/StarterAssets/Mobile/Scripts/CanvasInputs/UICanvasControllerInput.cs

33 lines
842 B
C#

using UnityEngine;
namespace StarterAssets
{
public class UICanvasControllerInput : MonoBehaviour
{
[Header("Output")]
public StarterAssetsInputs starterAssetsInputs;
public void VirtualMoveInput(Vector2 virtualMoveDirection)
{
starterAssetsInputs.MoveInput(virtualMoveDirection);
}
public void VirtualLookInput(Vector2 virtualLookDirection)
{
starterAssetsInputs.LookInput(virtualLookDirection);
}
public void VirtualJumpInput(bool virtualJumpState)
{
starterAssetsInputs.JumpInput(virtualJumpState);
}
public void VirtualSprintInput(bool virtualSprintState)
{
starterAssetsInputs.SprintInput(virtualSprintState);
}
}
}