mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-03 00:04:53 -05:00
State machine player is networked
small cleanups are still needed
This commit is contained in:
@@ -63,11 +63,17 @@ public class DashStateManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
void Update(){
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
|
||||
//calls any logic in the update state from current state
|
||||
currentState.UpdateState(this);
|
||||
}
|
||||
|
||||
void FixedUpdate(){
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
|
||||
//calls any logic in the fixed update state from current state
|
||||
currentState.FixedUpdateState(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user