* Expand game content, and improve playability and diversity.
+ Specific implementation:
* Design unique levels on different floors, and add new puzzles, monster behaviors, or scene changes on each floor to bring fresh experiences to players.
# Coding
## State Machine
```csharp
publicinterfaceIState
{
publicvoidEnter();
publicvoidExit();
publicvoidUpdate();
publicvoidPhysicsUpdate();
}
~~~
publicabstractclassStateMachine
{
protectedIStatecurrentState;
publicvoidChangeState(IStatenewState)
{
//currentState?.Exit();
if(currentState!=null)
{
currentState.Exit();
}
currentState=newState;
currentState.Enter();
}
publicvoidUpdate()
{
if(currentState!=null)
{
currentState.Update();
}
}
publicvoidPhysicsUpdate()
{
if(currentState!=null)
{
currentState.PhysicsUpdate();
}
}
}
~~~
\ No newline at end of file
* Design unique levels on different floors, and add new puzzles, monster behaviors, or scene changes on each floor to bring fresh experiences to players.