blob: 89d791a3a617a85545b231fd23099c95072ff895 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using UnityEngine;
namespace UnityEngine.Graphs.LogicGraph
{
public sealed class SimpleCharacterControllerNodes
{
[Logic(typeof(CharacterController))]
public static void SimpleMove (CharacterController self, Vector3 speed, Action grounded, Action airborne)
{
if (self.SimpleMove (speed))
{
if (grounded != null) grounded ();
}
else if (airborne != null) airborne ();
}
[Logic(typeof(CharacterController))]
public static CollisionFlags Move (CharacterController self, Vector3 motion)
{
return self.Move (motion);
}
}
}
|