Exemplo n.º 1
0
 void Awake()
 {
     if (instance != null)
     {
         throw new Exception("There already exists one PBKeyframeManager in the scene!!!");
     }
     instance = this;
 }
Exemplo n.º 2
0
 private void Init()
 {
     if (isInit)
     {
         return;
     }
     RegisterSwipeEvent();
     mPbKeyframeManager = gameObject.AddComponent <PBKeyframeManager>();
     BlockCamera        = transform.parent.Find("Camera").GetComponent <Camera>();
     if (IsShowStepHighlight)
     {
         HighlightingRenderer highlightingRenderer = BlockCamera.gameObject.AddComponent <HighlightingRenderer>();
         highlightingRenderer.downsampleFactor = 2;
         highlightingRenderer.iterations       = 5;
         highlightingRenderer.blurMinSpread    = 1;
         highlightingRenderer.blurSpread       = 0;
         highlightingRenderer.blurIntensity    = 0.34f;
     }
     isInit = true;
 }
Exemplo n.º 3
0
 void OnDestroy()
 {
     instance = null;
 }