Ejemplo n.º 1
0
		public MovieImpAction(MovieImp movie, int startFrame, int endFrame){
			if (startFrame == endFrame)
				CCDebug.Warning ("MovieAction-MovieID:{0}: startFrame should not equals to endFrame.", movie.characterId);
			
			_movie = movie;
			_startFrame = startFrame;
			_endFrame = endFrame;
			_stoped = false;
			
			float duration = (Mathf.Abs(_endFrame - _startFrame) + 1) / movie.fps;
			base.initWithDuration (duration);
		}