예제 #1
0
 public void OnRestart()
 {
     LayersManager.FadeOut(0.5f, () =>
     {
         LayersManager.PopTill <GameLayer>();
         LayersManager.FadeIn(0.5f, null);
         LayersManager.GetLayer <GameLayer>().Restart();
     });
 }
예제 #2
0
 public void OnMenu()
 {
     LayersManager.FadeOut(0.5f, () =>
     {
         LayersManager.GetLayer <GameLayer>().Clear();
         LayersManager.PopTill <MainMenuLayer>();
         LayersManager.FadeIn(0.5f, null);
     });
 }
예제 #3
0
        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();
        }