Files
BITFALL/Assets/Artists/Scripts/Player/CharacterControllerPro/GravityOnlyCharacterController.cs
CortexCore 5cd094ed9a 1
2023-10-04 16:50:27 +08:00

20 lines
377 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using Lightbug.CharacterControllerPro.Core;
using UnityEngine;
namespace BITFALL.Entities.Player.Movement
{
public class GravityOnlyCharacterController : MonoBehaviour
{
[SerializeField] private CharacterActor actor;
private void FixedUpdate()
{
actor.Velocity = Physics.gravity;
}
}
}