public void StartEvent()
{
bool mode = (this.controlType[(int)GameHandler.GetControlType()] ||
(this.controlType[(int)ControlType.BATTLE] && GameHandler.IsControlBattle()));
if(GameHandler.IsControlBattle() && !this.controlType[(int)ControlType.BATTLE])
{
mode = false;
}
if(mode && (this.inPause || !GameHandler.IsGamePaused()) &&
this.variables.CheckVariables())
{
this.eventStarted = true;
this.gameEvent.StartEvent(this);
}
}