예제 #1
0
 private void OnEnable()
 {
     NameTag.RegisterForNameTagCallbacks(NameTagCallback);
     if (pp_layer != null && pp_layer.haveBundlesBeenInited)
     {
         pp_layer.ResetHistory();
     }
 }
        static void OnCameraCut(CinemachineBrain brain)
        {
            // Debug.Log("Camera cut event");
            PostProcessLayer postFX = GetPPLayer(brain);

            if (postFX != null)
            {
                postFX.ResetHistory();
            }
        }
예제 #3
0
        private static void OnCameraCut(CinemachineBrain brain)
        {
            PostProcessLayer ppLayer = CinemachinePostProcessing.GetPPLayer(brain);

            if (!Object.op_Inequality((Object)ppLayer, (Object)null))
            {
                return;
            }
            ppLayer.ResetHistory();
        }
예제 #4
0
        private static void OnCameraCut(CinemachineBrain brain)
        {
            PostProcessLayer postProcessLayer = brain.PostProcessingComponent as PostProcessLayer;

            if (postProcessLayer == null)
            {
                brain.PostProcessingComponent = null;
                return;
            }
            postProcessLayer.ResetHistory();
        }
예제 #5
0
        static void OnCameraCut(CinemachineBrain brain)
        {
            // Debug.Log("Camera cut event");
            PostProcessLayer postFX = brain.PostProcessingComponent as PostProcessLayer;

            if (postFX == null)
            {
                brain.PostProcessingComponent = null;   // object deleted
            }
            else
            {
                postFX.ResetHistory();
            }
        }