Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ChangeState (string newState)
- {
- if (stateDictionary.ContainsKey (newState)) {
- if (stateCurrent.allowedStates.ContainsKey (newState))
- {
- print("newState == " + newState);
- score += stateCurrent.points;
- stateCurrent.points = stateCurrent.defaultPoints;
- statePrevious = stateCurrent;
- stateCurrent = stateDictionary[newState];
- } else
- stateCurrent.points += (stateCurrent.defaultPoints * multiplier.amount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement