private void Awake() { if (singleton == null) { singleton = this; } }
void Awake() { singleton = this; m_UIServer = m_UI.GetComponent <UIServer>(); GetComponent <TreasureStack>().Setup(); GetComponent <DiscardStack>().Setup(); m_Wait = new WaitForSeconds(1); }
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); }
void Awake() { main = this; }
public static void Init() { UI = new UIServer(); UI.Init(); Log = new UILogServer(); }