Beispiel #1
0
    public void closedHole()
    {
        if (isClosed)
        {
            return;
        }

        Debug.Log("HOLE TOCOU");
        GameSound.gameSound.PlaySFX("tap");
        isClosed = true;
        dropSkeleton.AnimationState.SetAnimation(0, "off", false);
        controller.fixedPipe();
    }
Beispiel #2
0
    public void TappedHole()
    {
        if (isClosed)
        {
            return;
        }

        isClosed = true;
        controller.fixedPipe();
        SkeletonGraphic graphic = this.GetComponent <SkeletonGraphic> ();

        graphic.AnimationState.SetAnimation(0, "off", false);
    }