private void Update() { GrabLineA.gameObject.SetActive(false); GrabLineB.gameObject.SetActive(false); ButtonLineRenderer.gameObject.SetActive(false); if (State == ProtoCursorState.GrabHover) { DoGrabHover(); } if (State == ProtoCursorState.ButtonHover) { DoButtonHover(); } State = ProtoCursorState.Nothing; }
public void DoButtonHover(Vector3 buttonHoverPoint) { State = ProtoCursorState.ButtonHover; this.buttonHoverPoint = buttonHoverPoint; }