Ejemplo n.º 1
0
        private void DestroyMB(MonoBehaviour mb, IRemoteObjectsHash objectsHash)
        {
            objectsHash.Remove(mb.gameObject);
            var ct = mb as IDIClosedContext;

            if (ct != null)
            {
                ct.BeforeFactoryDestruction();
            }

            GameObject.Destroy(mb.gameObject);
        }
Ejemplo n.º 2
0
 private void DestroyDefault(UnityEngine.Object obj, IRemoteObjectsHash objectsHash)
 {
     objectsHash.Remove(obj);
     UnityEngine.Object.Destroy(obj);
 }