Beispiel #1
0
        void OnEnable()
        {
            if (PrefabUtility.GetCorrespondingObjectFromSource(target) == null && PrefabUtility.GetPrefabInstanceHandle(target) != null)
            {
                return;
            }

            activeGameObject = (Asset.World.Generator)target;
        }
Beispiel #2
0
 void OnDisable()
 {
     activeGameObject = null;
 }