void OnMouseEnter() { if (!StarManager.Instance.IsPlaying) { return; } if (moveAnimation != null) { moveAnimation.complete(); moveAnimation.destroy(); } moveAnimation = Go.to(transform, .4f, new GoTweenConfig().position(endPosition).setEaseType(GoEaseType.BackInOut)); }
static public int complete(IntPtr l) { try { GoTween self = (GoTween)checkSelf(l); self.complete(); return(0); } catch (Exception e) { return(error(l, e)); } }
public void Initialize(int index) { GoingRight = index < 4; CurrentIndex = -1; SetIndex(index); // don't need to change z transform.position = (Vector2)pads.Pads[index].transform.position; transform.rotation = Quaternion.Euler(0f, 0f, GoingRight ? 270f : 90f); // stop tween if it's running if (jumpTween != null && jumpTween.state == GoTweenState.Running) { jumpTween.complete(); } }
public void Open() { if (toggleAnimation != null) { toggleAnimation.complete(); toggleAnimation.destroy(); } if (myRenderer.enabled) { AnimateClose(AnimateOpening); } else { AnimateOpening(); } }
public void SnapItemToTransform(Transform parentTo, System.Action <ItemPickup> endAnimationEvent) { AnimatePositioningItem(parentTo, endAnimationEvent); itemAnimation.complete(); }