/* Vector3 x1 = new Vector3(1.0f, 0.0f, 1.0f); // right top * Vector3 y1 = new Vector3(1.0f, 0.0f, -1.0f); // right bottom * Vector3 z1 = new Vector3(-1.0f, 0.0f, 1.0f); // left top * Vector3 w1 = new Vector3(-1.0f, 0.0f, -1.0f); // left bottom*/ public void Awake() { Rigidbody = GetComponent <Rigidbody>(); StartRotation = Motor.localRotation; Camera = Camera.main; Wii.WakeUp(); if (!Wii.GetIsAwake()) { Wii.WakeUp(); } Wii.StartSearch(); discoveryStatus = Wii.GetDiscoveryStatus(); if (discoveryStatus > 99) { Wii.AddVirtualRemote(); } }