コード例 #1
0
    void Start()
    {
        HandEvents.Grab(HandController.types.RIGHT);

        HandEvents.Grab    += Grab;
        HandEvents.Pointer += Pointer;
    }
コード例 #2
0
 public override void OnTriggerPress(Vector3 to)
 {
     arrow.gameObject.SetActive(true);
     arrow.SetOff();
     state = states.WAITING_TO_ACTIVE;
     HandEvents.Grab(HandController.types.LEFT);
 }
コード例 #3
0
 void Grab(HandController.types type)
 {
     if (type == HandController.types.LEFT)
     {
         bow.SetActive(true);
         HandEvents.Grab(HandController.types.RIGHT);
     }
 }