Exemple #1
0
    /////////////////////////////////////////////////////////////////////////////////////////////////
    /// <summary>
    /// start routine
    /// </summary>
    /////////////////////////////////////////////////////////////////////////////////////////////////
    private IEnumerator start()
    {
        result.SetActive(false);

        yield return(GlobalDialog.Create());

        isReady = true;
    }
Exemple #2
0
        public MasterDetailPage()
        {
            this.InitializeComponent();
            Current = this;

            SystemNavigationManager.GetForCurrentView().BackRequested += MasterDetailPage_BackRequested;
            GlobalDialog.InitializeDialog(rootGrid, this);
        }
Exemple #3
0
 /////////////////////////////////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Release this instance.
 /// </summary>
 /////////////////////////////////////////////////////////////////////////////////////////////////
 public static void Release()
 {
     if (instance != null)
     {
         Destroy(instance.gameObject);
         instance = null;
     }
 }
Exemple #4
0
 private static void OnVersus(TitleScreen titleScreen)
 {
     if (!titleScreen.AllowMultiplayer())
     {
         SoundManager.PlayAudio("MenuError");
         GlobalDialog.Display("titleScreen-connect2ndController");
     }
     else
     {
         SoundManager.PlayConfirmAudio();
         titleScreen.StartGame(loadPvP: true);
         GameController.coopOn = true;
     }
 }
Exemple #5
0
    /////////////////////////////////////////////////////////////////////////////////////////////////
    /// <summary>
    /// Awake this instance.
    /// </summary>
    /////////////////////////////////////////////////////////////////////////////////////////////////
    void Awake()
    {
        if (instance != null)
        {
            Release();
        }
        instance = this;
        DontDestroyOnLoad(gameObject);

        gameObject.name = "Global_Dialog";

        // set callback
        buttonLeft.onClick.AddListener(onLeftButton);
        buttonRight.onClick.AddListener(onRightButton);

        // disable canvas
        canvas.enabled = false;
    }