Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (logQueue.Count > 0)
     {
         var log = logQueue.Dequeue();
         logPanelManager.Writelog(log);
     }
     if (intensityLogs.Count > 0)
     {
         var log = intensityLogs.Dequeue();
         logPanelManager.WriteConsole(log.num, log.sendPos, log.intensity);
     }
 }
Esempio n. 2
0
    IEnumerator SendIntensity(SendPosition position)
    {
        //送信するインテンシティオブジェクトに変換
        sendIntensityData = intensityManager.MicPosReceived(position);
        yield return(null);

        if (sendIntensityData.sendType == SendType.Intensity)
        {
            tServer.SendAllClient(transferData.SerializeJson <IntensityPackage>(sendIntensityData));
            logPanelManager.WriteConsole(sendIntensityData.num, sendIntensityData.sendPos, sendIntensityData.intensity);
        }
        yield return(null);
    }
Esempio n. 3
0
 public void SendIntensity(TransIntensityPackage package)
 {
     tServer.SendAllClient(transferData.SerializeJson <TransIntensityPackage>(package));
     logPanelManager.WriteConsole(package.num, package.sendPos, package.sumIntensity);
 }