Exemplo n.º 1
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
     }
 }
Exemplo n.º 2
0
    void Awake()
    {
        singleton = this;

        m_UIServer = m_UI.GetComponent <UIServer>();
        GetComponent <TreasureStack>().Setup();
        GetComponent <DiscardStack>().Setup();
        m_Wait = new WaitForSeconds(1);
    }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting Server");
            var uiServer = new UIServer();

            try
            {
                Thread aThread = new Thread(new ThreadStart(uiServer.StartCommunicationWithUI));
                aThread.Start();
            }
            catch { }
            Console.WriteLine("Started Server");
            System.Threading.Thread.Sleep(Timeout.Infinite);
        }
Exemplo n.º 4
0
 void Awake()
 {
     main = this;
 }
Exemplo n.º 5
0
 public static void Init()
 {
     UI = new UIServer();
     UI.Init();
     Log = new UILogServer();
 }