예제 #1
0
    public void CombineGridSquare(Vector3 position)
    {
        StopAllCoroutines();
        myCollider.enabled = false;
        CanLand            = false;

        EasingActions easing = new EasingActions();

        StartCoroutine(easing.CoMoveY(0, 0.5f, transform.localPosition.y, position.y, transform, Easing.Function.Sinusoidal, Easing.Direction.Out));
        StartCoroutine(easing.CoMoveX(0, 0.5f, transform.localPosition.x, position.x, transform, Easing.Function.Sinusoidal, Easing.Direction.Out));
        StartCoroutine(easing.CoScale(0, 0.5f, 1f, 0.01f, transform, Easing.Function.Sinusoidal, Easing.Direction.Out));
        StartCoroutine(DelayedDestroy(0.5f));
    }
예제 #2
0
    private IEnumerator CoDelayMoveXDummy()
    {
        yield return(new WaitForSeconds(dummyScaleTime));

        StartCoroutine(myEasing.CoMoveX(0, dummyScaleTime, CurrentSquare.transform.localPosition.x, 0, CurrentSquare.transform, Easing.Function.Sinusoidal, Easing.Direction.Out));
    }