コード例 #1
0
 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;
     }
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: SlaggyWolfie/Pigeon-Pooper
 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);
 }