Beispiel #1
0
    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;
    }
Beispiel #2
0
 public void DoButtonHover(Vector3 buttonHoverPoint)
 {
     State = ProtoCursorState.ButtonHover;
     this.buttonHoverPoint = buttonHoverPoint;
 }