public void Deactivate()
 {
     if (isActivated)
     {
         isActivated = false;
         drawer.Dispose();
         drawer = new NullDrawer();
     }
 }
示例#2
0
 private void OnDisable()
 {
     drawer?.Dispose();
 }