MAJOR: Re-organize entire project

This commit is contained in:
2022-08-15 11:56:39 -07:00
parent 1e4c73ea1e
commit 49b14df1af
322 changed files with 3010 additions and 33674 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
namespace Scampz.GameJam.Assets.Scripts
{
public class CharacterInputController : MonoBehaviour
{
private CharacterController _controller;
public float Speed = 10f;
public float RotateSpeed = 1.0f;
private void Start()
{
_controller = GetComponent<CharacterController>();
}
void Update()
{
// Rotation
transform.Rotate(0, Input.GetAxis(InputOptions.Horizontal) * RotateSpeed, 0);
// Move
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = Speed * Input.GetAxis(InputOptions.Vertical);
_controller.SimpleMove(forward * curSpeed);
}
}
}