How can i add vertical move to this script
using CnControls;
using UnityEngine;
namespace Examples.Scenes.TouchpadCamera
{
public class RotateCamera : MonoBehaviour
{
public float RotationSpeed = 15f;
public Transform OriginTransform;
public void Update()
{
var horizontalMovement = CnInputManager.GetAxis("Horizontal");
OriginTransform.Rotate(Vector3.up, horizontalMovement * Time.deltaTime * RotationSpeed);
}
}
}
it is working on horizontal but i want to add also vertical move to it how can do thanks
Comment