public void Destroy()
 {
     Stop();
     if (SubsystemManager.RemoveStandaloneSubsystem(this))
     {
         OnDestroy();
     }
 }
Пример #2
0
        public void Destroy()
        {
            this.Stop();
            bool flag = SubsystemManager.RemoveStandaloneSubsystem(this);

            if (flag)
            {
                this.OnDestroy();
            }
        }