Esempio n. 1
0
 protected void Start()
 {
     guiprovider = new GUIProvider(Game.Instance.GameState.Data);
     if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
     {
         this.GetComponent <UnityEngine.UI.CanvasScaler>().referenceResolution = new Vector2(600, 400);
     }
 }
Esempio n. 2
0
        protected void Start()
        {
            var gs = Game.Instance.GameState;

            if (gs != null)
            {
                started     = true;
                guiprovider = new GUIProvider(gs.Data);

                SaveButton.SetActive(gs.Data.isShowSaveLoad());
                LoadButton.SetActive(gs.Data.isShowSaveLoad());
                ResetButton.SetActive(gs.Data.isShowReset());

                if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
                {
                    this.GetComponent <UnityEngine.UI.CanvasScaler>().referenceResolution = new Vector2(600, 400);
                }
            }
        }
Esempio n. 3
0
        protected void Start()
        {
            var gs = Game.Instance.GameState;

            if (gs != null)
            {
                started     = true;
                guiprovider = new GUIProvider(gs.Data);

                SaveButton.SetActive(gs.Data.isShowSaveLoad());
                LoadButton.SetActive(gs.Data.isShowSaveLoad());
                ResetButton.SetActive(gs.Data.isShowReset());

                if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
                {
                    this.GetComponent <UnityEngine.UI.CanvasScaler>().referenceResolution = new Vector2(600, 400);
                }

                /*Game.Instance.OnShowText += (finished, line, text, x, y, textColor, textOutlineColor, baseColor, outlineColor, id) =>
                 * {
                 *  if (!finished)
                 *  {
                 *      if (line != null)
                 *      {
                 *          Talk(line);
                 *      }
                 *      else if (textColor == Game.NoColor && textOutlineColor == Game.NoColor)
                 *      {
                 *          Talk(text, x, y, Color.white, Color.black);
                 *      }
                 *      else if(baseColor == Game.NoColor && outlineColor == Game.NoColor)
                 *      {
                 *          Talk(text, x, y, textColor, textOutlineColor);
                 *      }
                 *      else
                 *      {
                 *          Talk(text, x, y, textColor, textOutlineColor, baseColor, outlineColor);
                 *      }
                 *  }
                 * };*/
            }
        }
Esempio n. 4
0
 protected void Start()
 {
     guiprovider = new GUIProvider(Game.Instance.GameState.Data);
 }