Beispiel #1
0
 public override void OnGraphStop(Playable playable)
 {
     if (mBrain != null)
     {
         mBrain.ReleaseCameraOverride(mBrainOverrideId); // clean up
     }
     mBrainOverrideId = -1;
 }
Beispiel #2
0
    public override void OnPlayableDestroy(Playable playable)
    {
        if (mBrain != null)
        {
            mBrain.ReleaseCameraOverride(mBrainOverrideId);     // clean up
        }
        mBrainOverrideId = -1;
#if UNITY_EDITOR && UNITY_2019_2_OR_NEWER
        m_ScrubbingCacheHelper = null;
#endif
    }