void OnEnable()
 {
     Camera.onPreCull -= DrawWithCamera;
     Camera.onPreCull += DrawWithCamera;
     if (_spriteCollider != null)
     {
         _spriteCollider.InitMeshCollider();
     }
 }
Exemplo n.º 2
0
 void OnEnable()
 {
     if (!_drawNow)
     {
         return;
     }
     Camera.onPreCull -= DrawWithCamera;
     Camera.onPreCull += DrawWithCamera;
     if (_spriteCollider != null)
     {
         _spriteCollider.InitMeshCollider();
     }
 }