コード例 #1
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
     }
 }
コード例 #2
0
    void Awake()
    {
        singleton = this;

        m_UIServer = m_UI.GetComponent <UIServer>();
        GetComponent <TreasureStack>().Setup();
        GetComponent <DiscardStack>().Setup();
        m_Wait = new WaitForSeconds(1);
    }
コード例 #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);
        }
コード例 #4
0
ファイル: UIServer.cs プロジェクト: dqtoy/jewels2
 void Awake()
 {
     main = this;
 }
コード例 #5
0
 public static void Init()
 {
     UI = new UIServer();
     UI.Init();
     Log = new UILogServer();
 }