mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-05 00:54:45 -05:00
State machine player is networked
small cleanups are still needed
This commit is contained in:
@@ -67,11 +67,17 @@ public class NitroStateManager : 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