protected override void CacheProperties()
 {
     _pDrawSkybox  = serializedObject.FindProperty("drawSkybox");
     _pUseMask     = serializedObject.FindProperty("useMask");
     _pStencilRef  = serializedObject.FindProperty("stencilReference");
     _pStencilMask = serializedObject.FindProperty("stencilMask");
     _pStencilBias = serializedObject.FindProperty("stencilBias");
     _tm           = (TunnellingMobile)target;
 }
 protected override void Awake()
 {
     characterController = GetComponent <CharacterController>();
     head = GetComponent <XRRig>().cameraGameObject;
     if (vignette == null)
     {
         vignette = head.GetComponent <TunnellingMobile>();
     }
 }
示例#3
0
 protected override void CacheProperties()
 {
     InitAps(_pDrawSkybox, _pUseMask, _pStencilRef, _pStencilMask, _pStencilBias, _pDrawBeforeTransparent);
     _tm = (TunnellingMobile)target;
 }