public void svrControllerDown(controllerListener.svrController controllerThatBroadcasted) { Debug.Log(gameObject.name + "has heard the svrDown Broadcast"); activatingController = controllerThatBroadcasted; objectIsPickedUp(); //Could be toggled on flag toggleOnOff (); }
private void svrControllerDown(controllerListener.svrController controllerThatBroadcasted) { Debug.Log(gameObject.name + "has heard the svrDown Broadcast"); activatingController = controllerThatBroadcasted; Debug.Log ("It was touched by cotnroller" + activatingController.index); controllerInputTriggerDown(); }
private void objectIsDropped() { gameObject.transform.parent = null; Vector3 controllerVelocity = activatingController.curVelocity; Debug.Log("At button up, svrControllers velocity is: " + controllerVelocity); thisRigidbody.isKinematic = false; thisRigidbody.velocity = controllerVelocity; activatingController = null; }
public void objectIsDropped() { gameObject.transform.parent = null; Vector3 controllerVelocity = activatingController.curVelocity; Debug.Log("At button up, svrControllers velocity is: " + controllerVelocity); thisRigidbody.isKinematic = false; thisRigidbody.velocity = controllerVelocity; // gameObject.GetComponent<MeshRenderer>().material.color = originColor; activatingController = null; }
public void svrControllerUp(controllerListener.svrController controllerThatBroadcasted) { Debug.Log(gameObject.name + "has heard the svr Up Broadcast"); objectIsDropped(); activatingController = null; }
public void idController(controllerListener.svrController controller) { thisController = controller; }