29 lines
696 B
C#
29 lines
696 B
C#
using StarterAssets;
|
|
using UnityEngine;
|
|
|
|
public class VirtualInput : 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);
|
|
}
|
|
}
|