// Update is called once per frame void FixedUpdate() { rb.AddForce(0, 0, forwardForce * Time.deltaTime); if (Input.GetKey("d")) { rb.AddForce(sidewayForce * Time.deltaTime, 0, 0); Communications.SendImmediatly("UnityTrigger1", 1); Communications.SendImmediatly("UnityTrigger2", 0); } if (Input.GetKey("a")) { rb.AddForce(-sidewayForce * Time.deltaTime, 0, 0); Communications.SendImmediatly("UnityTrigger2", 1); Communications.SendImmediatly("UnityTrigger1", 0); } }