Ejemplo n.º 1
0
    public void OnPointerUp(PointerEventData eventData)
    {
        dragging = false;

        instance.startPercents = instance.CurrentPercentsByPosition();
        instance.startTime     = Time.time;
        instance.endTime       = instance.startTime + (100 - instance.startPercents) * timeToAddOnePercent;
    }