Пример #1
0
            private void DespawnPlane()
            {
                if (!IsValid(_plane))
                {
                    return;
                }

                _plane.Kill();
            }
Пример #2
0
 private void OnDestroy()
 {
     enabled = false;
     CancelInvoke();
     if (_entity != null && !_entity.IsDestroyed)
     {
         _entity.Kill();
     }
 }