Beispiel #1
0
    private void Awake()
    {
        var go = new GameObject(gameObject.name + " (updater)");

        updater        = go.AddComponent <LargeSketchUpdater>();
        updater.sketch = this;
    }
Beispiel #2
0
 private void OnDestroy()
 {
     if (updater != null)
     {
         DestroyImmediate(updater.gameObject);
         updater = null;
     }
 }