示例#1
0
 void OnDestroy()
 {
     if (myManager)
     {
         myManager.RemoveConnector(this);
     }
 }
示例#2
0
            public virtual void OnDestroy()
            {
                if (myManager)
                {
                    myManager.RemoveConnector(this);
                }

                if (eventSystem.currentSelectedGameObject == gameObject)
                {
                    eventSystem.SetSelectedGameObject(null);
                }
            }