State machine player is networked

small cleanups are still needed
This commit is contained in:
Melbyj1125
2022-02-16 14:21:34 -06:00
parent dfd1687224
commit f0936f4cee
15 changed files with 5790 additions and 5392 deletions

View File

@@ -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);
}