public void Advance() { g.DebugLog("Advance..."); //g.shakeMgr.AdvanceTableMaterial(); g.ticTacToeMgr.ColorSideIndicators((Color.white + Color.black) / 2); // SwitchAssets(); // AdvanceExpand(); g.ticTacToeMgr.ResetTicTacToe(); Invoke("ClearPause", delayExpand); }
void UpdateChangeN() { GameObject goCam = g.goSenderCam; if (g.role == RoleType.receiver) { goCam = g.goReceiverCam; } txtSend = ""; for (int n = 0; n < g.goAssets.transform.childCount; n++) { GameObject go = g.goAssets.transform.GetChild(n).gameObject; if (g.ynPause == false) { if (g.udpMgr.ynConnected == true && HasTargetMoved(n) == true) { if (txtSend != "") { txtSend += "*"; } txtSend += Vector3ToStringGoNtarget(n); } } } UpdateExpiredFromTxtConfirms(); AddConfirms(); if (txtSend != "") { SendString(txtSend); } if (ynReceived == true) { if (ynError == true) { DebugLog(txtError); ynError = false; } else { g.DebugLog("Receiving " + txtReceived); ReceiveOtherNs(); timeLastReceived = Time.realtimeSinceStartup; ynReceived = false; txtReceived = ""; } } g.smoothMgr.SaveAll(); }
public void UpdateMode() { if (g.ynDetect == false && g.ynRotateGround == false) { g.mode = ModeType.play; //g.autoMgr.TurnOnOffAutoImages(true); } else { g.mode = ModeType.place; } if (modeLast != g.mode) { bool ynShowPlaneAndProtractor = g.mode == ModeType.place; g.imagePlane.gameObject.SetActive(ynShowPlaneAndProtractor); g.planeFinderMgr.PlaneFinderOnOff(ynShowPlaneAndProtractor); g.autoMgr.ResetTimeLastTouch(); g.DebugLog("Mode " + g.mode); } }