public CutsceneData(GameObject obj, float time, GameObject origTarget, Vector3 origPos, Vector3 origOffset, EndCutsceneFunction func) { _target = obj; _time = time; _timePassed = 0; _origTarget = origTarget; _origPos = origPos; _origOff = origOffset; _func = func; }
public void RunCutsceneLookAtTimed(GameObject obj, float time, Vector3 offset, EndCutsceneFunction func) { _cutData = new CutsceneData(obj, time, _target, _pos, _posOffset, func); _inCutscene = true; _target = obj; _posOffset = offset; _targetSpecified = true; }