示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        hand = GetComponentInParent <Hand>();
        otherDialogInteractor = hand.otherHand.GetComponentInChildren <DialogInteractor>();
        lineRenderer          = GetComponent <LineRenderer>();
        lineRendererAnimator  = GetComponent <Animator>();

        skipSentenceAction.AddOnStateUpListener(SkipSentence, hand.handType);
        dialogInteractAction.AddOnStateUpListener(DialogInteract, hand.handType);
    }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        if (handType == SteamVR_Input_Sources.LeftHand)
        {
            hand = Player.instance.leftHand;
        }
        else
        {
            hand = Player.instance.rightHand;
        }
        drawMagicCircleAction.AddOnChangeListener(DrawMagicCircle, hand.handType);

        dialogInteractor  = hand.GetComponentInChildren <DialogInteractor>();
        spellLineRenderer = GetComponent <LineRenderer>();
    }