// Update is called once per frame protected void Update() { if (useGIF && sprites != null && _timer.IsFinish()) { _currentIndex = MathfExtend.ChangeInCircle(_currentIndex, 1, sprites.Length); _timer.Reset(); SetFrame(); } }
private void SetBar() { if (circleBar) { currentPiece = MathfExtend.ChangeInCircle(currentPiece, 1, pieces.Length); } if (pieces != null && barImage != null && currentPiece < pieces.Length) { spriteManagr.SetSprite(pieces[currentPiece]); } }