public void button(str3DBbMessage msg) { state = msg.state; // Change local position if (msg.actions.position) { //sPosition = msg.state; switchPosition(); } // Change local rotation if (msg.actions.rotation) { switchRotation(); } // To activate or deactivate objects (SetActive) if (msg.actions.objects) { switchObjects(); } // Change materials if (msg.actions.materials) { switchMaterials(); } }
public void button(str3DBbMessage msg) { bool s = testSecret(); secret = secret.Substring(0, 4); if (msg.GO == generalButton & !iWait) { StartCoroutine(animInformer(s)); Locker(); } else if (nSecret.Length < secret.Length & !iWait) { for (int b = 0; b < buttons.Length; b++) { if (buttons [b] == msg.GO) { nSecret = nSecret + b.ToString(); informerUpdate(nSecret.Length, b); } } if (nSecret.Length == secret.Length & !iWait & generalButton == null) { StartCoroutine(animInformer(s)); Locker(); } } }