public void removeEvents(IGameParserEvents ievents) { EventNewGame -= new newGame(ievents.newGame); EventEnterVariation -= new enterVariation(ievents.enterVariation); EventExitVariation -= new exitVariation(ievents.exitVariation); EventFinished -= new finished(ievents.finished); EventTagParsed -= new tagParsed(ievents.tagParsed); EventNagParsed -= new nagParsed(ievents.nagParsed); EventMoveParsed -= new moveParsed(ievents.moveParsed); EventCommentParsed += new commentParsed(ievents.commentParsed); }
/// <summary> /// Remove a specific listner from the events fired by the parsing /// of the PGN data. /// </summary> /// <param name="ievents"></param> public void RemoveEvents(IPGNReaderEvents ievents) { EventNewGame -= new newGame(ievents.NewGame); EventExitHeader += new exitHeader(ievents.ExitHeader); EventEnterVariation -= new enterVariation(ievents.EnterVariation); EventExitVariation -= new exitVariation(ievents.ExitVariation); EventStarting += new starting(ievents.Starting); EventFinished -= new finished(ievents.Finished); EventTagParsed -= new tagParsed(ievents.TagParsed); EventNagParsed -= new nagParsed(ievents.NagParsed); EventMoveParsed -= new moveParsed(ievents.StepParsed); EventCommentParsed -= new commentParsed(ievents.CommentParsed); EventendMarkerParsed -= new endMarkerParsed(ievents.EndMarker); }
void Start() { displayScript = GameObject.Find("WaveNumber").GetComponent <DisplayWaveNumber>(); newGameScript = GameObject.Find(newGameFile).GetComponent <newGame>(); if (newGameScript.startNewHordeGame == false) { Debug.Log("CONTINUE CALLED"); Debug.Log(newGameScript.startNewHordeGame); waveNumber = SaveLoad.Load(filePath); } else { Debug.Log("NEW GAME CALLED"); Debug.Log(newGameScript.startNewHordeGame); waveNumber = 1; SaveLoad.SaveData(1, filePath); } displayScript.Refresh(filePath); }
public void continueFighterGameBtn(string continueGameLevel) { newGameScript = GameObject.Find("FNewGame").GetComponent <newGame>(); newGameScript.startNewFighterGame = false; SceneManager.LoadScene(continueGameLevel); }
public void newFighterGameBtn(string newGameLevel) { newGameScript = GameObject.Find("FNewGame").GetComponent <newGame>(); newGameScript.startNewFighterGame = true; SceneManager.LoadScene(newGameLevel); }