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

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