maint: player FSM graph cleanup
This commit is contained in:
@@ -22,9 +22,6 @@ public class PlayerControls : MonoBehaviour{
|
||||
graph = GetComponent<GraphOwner>();
|
||||
}
|
||||
|
||||
void Start(){
|
||||
}
|
||||
|
||||
public void OnMove(InputValue value){
|
||||
rawMoveInput.x = value.Get<Vector2>().x;
|
||||
rawMoveInput.y = value.Get<Vector2>().y;
|
||||
@@ -36,17 +33,10 @@ public class PlayerControls : MonoBehaviour{
|
||||
}
|
||||
|
||||
public void OnSprint(){
|
||||
SendMessage("StartSprint");
|
||||
graph.SendEvent<string>("InputEvent", "Sprint", null);
|
||||
}
|
||||
|
||||
public void OnJump(){
|
||||
SendMessage("StartJump");
|
||||
graph.SendEvent<string>("InputEvent", "Jump", null);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update(){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user