Changes
Page history
Update Night of Horror
authored
Nov 25, 2024
by
Hong, Xin
Hide whitespace changes
Inline
Side-by-side
home.md
View page @
fa6c6b6c
...
@@ -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;
...
...
...
...