internal void Init(CurveHolderNew ch) { GOERoot.GOECamera.DisableMoveCameras(); mCurveHolder = ch; mCurveTime += Time.deltaTime; Transform cpos = GOECamera.Camera.transform; startPos = new Vector3(cpos.position.x, cpos.position.y, cpos.position.z); startQuat = cpos.localRotation; }
public CurveHolderNew(CurveHolderNew source) { name = source.name; anglex = new AnimationCurve(source.anglex.keys); angley = new AnimationCurve(source.angley.keys); anglez = new AnimationCurve(source.anglez.keys); posx = new AnimationCurve(source.posx.keys); posy = new AnimationCurve(source.posy.keys); posz = new AnimationCurve(source.posz.keys); rotx = new AnimationCurve(source.rotx.keys); roty = new AnimationCurve(source.roty.keys); rotz = new AnimationCurve(source.rotz.keys); rotw = new AnimationCurve(source.rotw.keys); mType = source.mType; rType = source.rType; if (source.animationStateData != null) { animationStateData = new List <string> (source.animationStateData); } isLocal = source.isLocal; }
private void Start(CurveHolderNew ch) { Init(ch); mInited = true; }