public void OnRestart() { LayersManager.FadeOut(0.5f, () => { LayersManager.PopTill <GameLayer>(); LayersManager.FadeIn(0.5f, null); LayersManager.GetLayer <GameLayer>().Restart(); }); }
public void OnMenu() { LayersManager.FadeOut(0.5f, () => { LayersManager.GetLayer <GameLayer>().Clear(); LayersManager.PopTill <MainMenuLayer>(); LayersManager.FadeIn(0.5f, null); }); }
internal override void OnFloatUp() { base.OnFloatUp(); var newMapLayer = LayersManager.GetLayer <NewMapLayer>(); if (!newMapLayer.OkPressed) { return; } _filenameField.text = newMapLayer.Filename; _map = new MapModel(newMapLayer.Width, newMapLayer.Height); CreateMapView(); }