BBGamelib.CCSequence.Actions C# (CSharp) Method

Actions() public static method

public static Actions ( CCActionFiniteTime action1 ) : CCActionFiniteTime
action1 CCActionFiniteTime
return CCActionFiniteTime
		public static CCActionFiniteTime Actions(CCActionFiniteTime action1, params CCActionFiniteTime[] args){
			CCActionFiniteTime prev = action1;
			if(args!=null){
				for(int i=0; i<args.Length; i++){
					CCActionFiniteTime now  = args[i];
					if(now==null)
						break;
					prev = ActionWithOneTwo(prev, now);		
				}
			}
			return prev;
		}
		

Usage Example

Beispiel #1
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;
        }
All Usage Examples Of BBGamelib.CCSequence::Actions