public void Deactivate()
 {
     if (isActivated)
     {
         isActivated = false;
         drawer.Dispose();
         drawer = new NullDrawer();
     }
 }
Пример #2
0
 private void OnDisable()
 {
     drawer?.Dispose();
 }