private void AdvanceAnimation() { if (Time.time > ANIMATION_DELAY + _lastUpdatedAnimationTime) { //currentFrame = OurUtils.ValueBouncer(currentFrame, 0, 2); currentFrame = OurUtils.ValueCheckerAndAlternator(currentFrame, 0, 1, true); _lastUpdatedAnimationTime = Time.time; } }
private void BirdAnimation() { //Not used currently. Hasn't been updated to new standards. Refer to AdvanceAnimation() currentFrame = OurUtils.ValueCheckerAndAlternator(currentFrame, 0, 1, true); Timer fly = new Timer(250, BirdAnimation); }