1df2624133
added ai navigaion, input system, postprocessing and adding the starter asset charactor controler
28 lines
696 B
C#
28 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);
|
|
}
|
|
}
|