public void closedHole() { if (isClosed) { return; } Debug.Log("HOLE TOCOU"); GameSound.gameSound.PlaySFX("tap"); isClosed = true; dropSkeleton.AnimationState.SetAnimation(0, "off", false); controller.fixedPipe(); }
public void TappedHole() { if (isClosed) { return; } isClosed = true; controller.fixedPipe(); SkeletonGraphic graphic = this.GetComponent <SkeletonGraphic> (); graphic.AnimationState.SetAnimation(0, "off", false); }