예제 #1
0
 protected TransformClone ApplyModifierStack(IEnumerable<IModifier> mods, TransformClone input)
 {
     foreach (IModifier mod in mods) {
         input = mod.Modify(input);
     }
     return input;
 }
예제 #2
0
 protected TransformClone ApplyModifierStack(IEnumerable <IModifier> mods, TransformClone input)
 {
     foreach (IModifier mod in mods)
     {
         input = mod.Modify(input);
     }
     return(input);
 }
예제 #3
0
        protected void Update()
        {
            TransformClone source = TransformClone.FromTransform(_targetCamera.transform);

            LinkedList <IModifier> mods   = BuildModifierStack();
            TransformClone         output = ApplyModifierStack(mods, source);

            output.ApplyToTransform(_targetCamera.transform);
        }