21 lines
362 B
C#
21 lines
362 B
C#
using Godot;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Godot.Collections;
|
|
|
|
namespace Rokojori
|
|
{
|
|
[GlobalClass]
|
|
public partial class GroundReset:CharacterControllerAction
|
|
{
|
|
public override void _OnTrigger()
|
|
{
|
|
if ( ! body.IsOnFloor() )
|
|
{
|
|
return;
|
|
}
|
|
|
|
SetVelocity( Vector3.Zero );
|
|
}
|
|
}
|
|
} |