BBGamelib.flash.imp.MovieImpAction.MovieImpAction C# (CSharp) Method

MovieImpAction() public method

public MovieImpAction ( MovieImp movie, int startFrame, int endFrame ) : UnityEngine
movie MovieImp
startFrame int
endFrame int
return UnityEngine
		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);
		}