mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
maybe fixed issue with movestate reference
This commit is contained in:
@@ -56,6 +56,13 @@ public class DashStateManager : NetworkBehaviour
|
||||
|
||||
void Update(){
|
||||
|
||||
if(currentState == null){
|
||||
//players starting state
|
||||
currentState = NoneState;
|
||||
previousState = NoneState;
|
||||
currentState.EnterState(this, previousState);
|
||||
}
|
||||
|
||||
if (!IsLocalPlayer) { return; }
|
||||
|
||||
//calls any logic in the update state from current state
|
||||
|
||||
Reference in New Issue
Block a user