Esempio n. 1
0
    IEnumerator Startup()
    {
        ViewController.GetInstance().Initialize(ViewAnchorRef.transform);
        UserDataController.GetInstance().Initialize();
        while (UserDataController.GetInstance().ContactsUsers == null)
        {
            yield return(null);
        }

        SoundManager.GetInstance();
        yield return(new WaitForSeconds(.1f));

        StartCoroutine(NetworkController.GetInstance().Connect());
        SpeechController.GetInstance().Initialize();
        PhotoController.GetInstance().Initialize();



        CheatController.GetInstance().Initialize(ViewAnchorRef.transform);

        ContactsList cl = ViewController.GetInstance().CurrentView.GetComponent <ContactsList>();

        cl.Initialize();
        //Initiate The Singletons
        //Transaction<List<TcgCard>> t = new Transaction<List<TcgCard>>();
    }
Esempio n. 2
0
 void OnGUI()
 {
     if (CheatController.GetInstance().DebugEnabled)
     {
         GUILayout.BeginArea(new Rect(10, 100, 200, 200));
         GUILayout.Label(_speechRecognitionResult);
         GUILayout.Label(_speechContextHits);
         GUILayout.EndArea();
     }
 }
Esempio n. 3
0
 void OnGUI()
 {
     if (CheatController.GetInstance().DebugEnabled)
     {
         GUILayout.Label(PhotonNetwork.connectionStateDetailed.ToString());
         if (connectedToMaster)
         {
             GUILayout.Label("Player Count: " + PhotonNetwork.countOfPlayers.ToString());
             GUILayout.Label("Room Count: " + PhotonNetwork.GetRoomList().Length.ToString());
         }
     }
 }