Ejemplo n.º 1
0
        // load map
        protected void LoadMap()
        {
            if (map == null)
            {
                map = JUtil.FindComponent <Map>();
            }

            if (map == null)
            {
                return;
            }

            if (gameInfo != null)
            {
                map.Initialize(gameInfo.mapPath);
            }
        }
Ejemplo n.º 2
0
 public void Surrender()
 {
     JUtil.LoadScene(Config.Scene.MainMenu);
 }
Ejemplo n.º 3
0
 public void OnClick_Play()
 {
     JUtil.LoadScene(Config.Scene.Ingame, 1);
 }
Ejemplo n.º 4
0
        public override void Resizing()
        {
            float newSize = JUtil.GetMinResRatio();

            text.fontSize = (int)(newSize * fontSize);
        }
Ejemplo n.º 5
0
 public void OnClick_Quit()
 {
     JUtil.Quit();
 }