Esempio n. 1
0
    public static void Apply(Camera cam, BaseViewModel vm)
    {
        CachedTransform <Camera>        cam2 = new CachedTransform <Camera>(cam);
        CachedTransform <BaseViewModel> vm2  = new CachedTransform <BaseViewModel>(vm);

        for (int i = 0; i < list.Count; i++)
        {
            list[i].Run(ref cam2, ref vm2);
        }
        cam2.Apply();
        vm2.Apply();
    }
    public static void Apply(Camera cam, BaseViewModel vm)
    {
        CachedTransform <Camera>        cachedTransform  = new CachedTransform <Camera>(cam);
        CachedTransform <BaseViewModel> cachedTransform1 = new CachedTransform <BaseViewModel>(vm);

        for (int i = 0; i < BaseScreenShake.list.Count; i++)
        {
            BaseScreenShake.list[i].Run(ref cachedTransform, ref cachedTransform1);
        }
        cachedTransform.Apply();
        cachedTransform1.Apply();
    }
    public static void Apply(Camera cam, BaseViewModel vm)
    {
        CachedTransform <Camera>        cam1 = new CachedTransform <Camera>(cam);
        CachedTransform <BaseViewModel> vm1  = new CachedTransform <BaseViewModel>(vm);

        for (int index = 0; index < BaseScreenShake.list.Count; ++index)
        {
            BaseScreenShake.list[index].Run(ref cam1, ref vm1);
        }
        cam1.Apply();
        vm1.Apply();
    }