This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TimedTextboxEvent = {} | |
TimedTextboxEvent.__index = TimedTextboxEvent | |
function TimedTextboxEvent:Create(box, time) | |
local this = | |
{ | |
mTextbox = box, | |
mCountDown = time | |
} | |
setmetatable(this, self) | |
return this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StateMachine = {} | |
StateMachine.__index = StateMachine | |
function StateMachine:Create() | |
local this = | |
{ | |
mEmpty = | |
{ | |
HandleInput = function() end, | |
Update = function() end, | |
Enter = function() end, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
public interface IState | |
{ | |
void Update(float dt); | |
void HandleInput(); | |
void Enter(params object[] args); |