Tanoda
DobotBruteforcer.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class DobotBruteforcer : MonoBehaviour
6{
8 public Vector2 FromToX, FromToY, FromToZ;
9
10#if UNITY_EDITOR && !UNITY_WEBGL
11 IEnumerator Start()
12 {
13 yield return null;
14 yield return new WaitForSeconds(5f);
15 Debug.Log("Started bruteforcing...");
16 for (int x = (int)FromToX.x; x < FromToX.y; x += 20)
17 {
18 for (int y = (int)FromToY.x; y < FromToY.y; y += 20)
19 {
20 for (int z = (int)FromToZ.x; z < FromToZ.y; z += 15)
21 {
22 Debug.Log($"X:{x} Y:{y} Z:{z}");
23 serial.SendMoveCommand(new Vector3(x,y,z));
24 yield return new WaitForSeconds(0.36f);
26 yield return new WaitForSeconds(0.15f);
27 }
28 }
29 }
30
32 }
33#endif
34}
UnityEngine.Debug Debug
Definition: TanodaServer.cs:19
SerialControllerBytes serial