void CameraEnd(bool isReversed, Camera cam, Camera camEnd, Camera[] allCams) { if (isReversed) { //set camEnd to top if (camEnd) { AMUtil.SetTopCamera(cam, allCams); } } if (typeEnd == 0) { AMCameraFade.reset(); } else { AMCameraFade cf = AMCameraFade.getCameraFade(); cf.keepAliveColor = true; cf.hasColorTex = true; cf.hasColorBG = false; cf.colorTex = colorEnd; cf.mode = 0; cf.value = 1.0f; } if (!still) { if (cam) { cam.targetTexture = null; } if (camEnd) { camEnd.targetTexture = null; } } if (AMCameraFade.hasInstance()) { AMCameraFade cf = AMCameraFade.getCameraFade(); cf.clearScreenTex(); cf.clearTexture(); if (cf.keepAlives > 0) { cf.keepAlives--; } } }
void AMITarget.SequenceComplete(AMSequence seq) { //end camera fade if (AMCameraFade.hasInstance()) { AMCameraFade cf = AMCameraFade.getCameraFade(); cf.playParam = null; } mLastPlayingTakeIndex = mNowPlayingTakeIndex; mNowPlayingTakeIndex = -1; if (takeCompleteCallback != null) { takeCompleteCallback(this, seq.take); } }
public void Stop() { AMTakeData take = mCurrentPlayingTake; if (take == null) { return; } take.Stop(this); //end camera fade if (AMCameraFade.hasInstance()) { AMCameraFade cf = AMCameraFade.getCameraFade(); cf.playParam = null; } mSequences[mNowPlayingTakeIndex].Reset(); mLastPlayingTakeIndex = mNowPlayingTakeIndex; mNowPlayingTakeIndex = -1; }