示例#1
0
 public FlightPlayerInput(PlayerInputComponent input, string boost, string thrustAxis, string strafeHorizontalAxis, string strafeVerticalAxis, string pitchAxis, string yawAxis, string rollAxis)
 {
     Input                = input;
     Boost                = boost;
     ThrustAxis           = thrustAxis;
     StrafeHorizontalAxis = strafeHorizontalAxis;
     StrafeVerticalAxis   = strafeVerticalAxis;
     PitchAxis            = pitchAxis;
     YawAxis              = yawAxis;
     RollAxis             = rollAxis;
 }
 public static void Assign(PlayerInputComponent component) {
     _local.Set(component);
 }
示例#3
0
 public override void OnEnter(RuntimeStateNode lastNode)
 {
     base.OnEnter(lastNode);
     _input = Graph.Entity.Get <PlayerInputComponent>();
 }
示例#4
0
 public override void Start(ActionUsingNode node)
 {
     base.Start(node);
     _start = TimeManager.Time;
     _input = node.Entity.Get <PlayerInputComponent>();
 }