private void OnMouseDown() { if (transform.CompareTag("RestartButton")) { //Нужно подумать что здесь подправить //int numb = numberOfLvl; //hManager.DeletePointAtLvl(--numb); hManager.DeletePointAtLvl(numberPointNextLvl); noReload = false; } hManager.Pause(false); hManager.ReloadLVL(noReload); hManager.LoadLevl(numberOfLvl, numberPointNextLvl); }
public bool Damage() { countLife--; //Messenger<int>.Broadcast(GameEvent.LIFE_HIT, countLife); lifeBar.MinusLife(countLife); if (!Convert.ToBoolean(countLife)) { hManager.PlayerIsDEad(); hManager.DeletePointAtLvl(hManager.GetIndexCurrentScoreArray()); Messenger.Broadcast(GameEvent.GAME_END); Messenger <string> .Broadcast(GameEvent.SHOW_MENU, hManager.LString()); gController.EndLvl(); return(true); } else { return(false); } }