Error() public static method

public static Error ( string format ) : void
format string
return void
Beispiel #1
0
        public void selectPage(int page)
        {
            if (page < 0 || page >= layers_.Count)
            {
                CCDebug.Error(@"CCScrollLayer#selectPage: {0} - wrong page number, out of bounds. ", page);
                return;
            }

            this.position  = this.positionForPageWithNumber(page);
            prevScreen_    = currentScreen_;
            currentScreen_ = page;
        }
Beispiel #2
0
        public void moveToPage(int page)
        {
            if (page < 0 || page >= layers_.Count)
            {
                CCDebug.Error("CCScrollLayer#moveToPage: {0} - wrong page number, out of bounds. ", page);
                return;
            }
            if (this.delegate_ != null)
            {
                this.delegate_.scrollLayerScrollingStarted(this, page);
            }
            isMoving_ = true;
            CCActionFiniteTime changePage = new CCMoveTo(scrollTime_, this.positionForPageWithNumber(page));

            changePage = CCSequence.Actions(changePage, new CCCallFunc(this, moveToPageEnded));
            this.runAction(changePage);
            prevScreen_    = currentScreen_;
            currentScreen_ = page;
        }