You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
353 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LocalPlayer : MonoBehaviour {
public CharacterController charControl;
private void Update()
{
if (!charControl.isGrounded)
{
charControl.SimpleMove(new Vector3(0.0f, -5.0f * Time.deltaTime, 0.0f));
}
}
}