예제 #1
0
 void Awake()
 {
     if (null == singleton)
     {
         singleton = this;
     }
 }
예제 #2
0
        void OnClicked()
        {
            // clear the table, and start listening if not already started

            NetBroadcast.allReceivedBroadcastData.Clear();

            if (this.table)
            {
                this.table.Clear();
                this.table.UpdateTable();
            }

            if (!NetBroadcast.IsListening())
            {
                NetBroadcast.StartListening();
                LANScan2UI.StopListeningLater();
            }
        }