Ejemplo 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>>();
    }
Ejemplo n.º 2
0
 public static CheatController GetInstance()
 {
     if (cheatController == null)
     {
         cheatController = new GameObject("CheatController").AddComponent <CheatController>();
     }
     return(cheatController);
 }
Ejemplo n.º 3
0
 void OnGUI()
 {
     if (CheatController.GetInstance().DebugEnabled)
     {
         GUILayout.BeginArea(new Rect(10, 100, 200, 200));
         GUILayout.Label(_speechRecognitionResult);
         GUILayout.Label(_speechContextHits);
         GUILayout.EndArea();
     }
 }
Ejemplo n.º 4
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());
         }
     }
 }