Browse Source

remove legacy code

tags/Rel1
sebas77 7 years ago
parent
commit
9c9f2171fb
5 changed files with 0 additions and 66 deletions
  1. +0
    -9
      Context/Factories/Legacy.meta
  2. +0
    -11
      Context/IUnityContextHierarchyChangedListener.cs
  3. +0
    -8
      Context/IUnityContextHierarchyChangedListener.cs.meta
  4. +0
    -30
      Context/Unity/NotifyComponentsRemoved.cs
  5. +0
    -8
      Context/Unity/NotifyComponentsRemoved.cs.meta

+ 0
- 9
Context/Factories/Legacy.meta View File

@@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 8d34411ef4f6005489ca3bb91987c84a
folderAsset: yes
timeCreated: 1466179612
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 0
- 11
Context/IUnityContextHierarchyChangedListener.cs View File

@@ -1,11 +0,0 @@
using UnityEngine;

namespace Svelto.Context.Legacy
{
public interface IUnityContextHierarchyChangedListener
{
void OnMonobehaviourAdded(MonoBehaviour component);

void OnMonobehaviourRemoved(MonoBehaviour component);
}
}

+ 0
- 8
Context/IUnityContextHierarchyChangedListener.cs.meta View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 905bfd795bede6d448694b23dd88e0be
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

+ 0
- 30
Context/Unity/NotifyComponentsRemoved.cs View File

@@ -1,30 +0,0 @@
using Svelto.DataStructures;
using UnityEngine;

namespace Svelto.Context.Legacy
{
public class NotifyComponentsRemoved : MonoBehaviour
{
public WeakReference<IUnityContextHierarchyChangedListener> unityContext { private get; set; }

void Start()
{
if (unityContext == null)
{
Destroy(this);
}
}

void OnDestroy()
{
if (unityContext == null || unityContext.IsAlive == false)
return;

MonoBehaviour[] components = gameObject.GetComponents<MonoBehaviour>();

for (int i = 0; i < components.Length; ++i)
if (components[i] != null)
unityContext.Target.OnMonobehaviourRemoved(components[i]);
}
}
}

+ 0
- 8
Context/Unity/NotifyComponentsRemoved.cs.meta View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 13278f0cd187d8d43acc6a02479e459b
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Loading…
Cancel
Save