Exemplo n.º 1
0
 private bool NoArrowNotched(GameObject controller)
 {
     if (VRTK_SDK_Bridge.IsControllerLeftHand(controller))
     {
         bow = VRTK_SDK_Bridge.GetControllerRightHand().GetComponentInChildren <BowAim>();
     }
     else if (VRTK_SDK_Bridge.IsControllerRightHand(controller))
     {
         bow = VRTK_SDK_Bridge.GetControllerLeftHand().GetComponentInChildren <BowAim>();
     }
     return(bow == null || !bow.HasArrow());
 }
Exemplo n.º 2
0
    private bool NoArrowNotched(GameObject controller)
    {
        if (controller == controllers.left)
        {
            bow = controllers.right.GetComponentInChildren <BowAim>();
        }
        else if (controller == controllers.right)
        {
            bow = controllers.left.GetComponentInChildren <BowAim>();
        }

        return(bow == null || !bow.HasArrow());
    }
    private bool NoArrowNotched(GameObject controller)
    {
        if (controller == controllers.left)
        {
            bow = controllers.right.GetComponentInChildren<BowAim>();
        }
        else if(controller == controllers.right)
        {
            bow = controllers.left.GetComponentInChildren<BowAim>();
        }

        return (bow == null || !bow.HasArrow());
    }
Exemplo n.º 4
0
    private bool CheckBowHasArrow()
    {
        BowAim bowAim = bow.GetComponent <BowAim>();

        return(bowAim.HasArrow());
    }