Update Night of Horror authored by Hong, Xin's avatar Hong, Xin
...@@ -6,6 +6,7 @@ title: Night of Horror ...@@ -6,6 +6,7 @@ title: Night of Horror
# Game Design Document # Game Design Document
[TOC] [TOC]
...@@ -309,7 +310,7 @@ title: Night of Horror ...@@ -309,7 +310,7 @@ title: Night of Horror
# Coding # Coding
## State Machine ## State Machine
'''csharp ~~~
public interface IState public interface IState
{ {
public void Enter(); public void Enter();
...@@ -321,7 +322,7 @@ public interface IState ...@@ -321,7 +322,7 @@ public interface IState
public void PhysicsUpdate(); public void PhysicsUpdate();
} }
~~~
public abstract class StateMachine public abstract class StateMachine
{ {
protected IState currentState; protected IState currentState;
... ...
......