void Start() { HandEvents.Grab(HandController.types.RIGHT); HandEvents.Grab += Grab; HandEvents.Pointer += Pointer; }
public override void OnTriggerPress(Vector3 to) { arrow.gameObject.SetActive(true); arrow.SetOff(); state = states.WAITING_TO_ACTIVE; HandEvents.Grab(HandController.types.LEFT); }
void Grab(HandController.types type) { if (type == HandController.types.LEFT) { bow.SetActive(true); HandEvents.Grab(HandController.types.RIGHT); } }