protected TransformClone ApplyModifierStack(IEnumerable<IModifier> mods, TransformClone input) { foreach (IModifier mod in mods) { input = mod.Modify(input); } return input; }
protected TransformClone ApplyModifierStack(IEnumerable <IModifier> mods, TransformClone input) { foreach (IModifier mod in mods) { input = mod.Modify(input); } return(input); }
protected void Update() { TransformClone source = TransformClone.FromTransform(_targetCamera.transform); LinkedList <IModifier> mods = BuildModifierStack(); TransformClone output = ApplyModifierStack(mods, source); output.ApplyToTransform(_targetCamera.transform); }