refactoring
This commit is contained in:
@@ -2,7 +2,6 @@ using Simulator.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using UVC.UI.Window.PropertyWindow;
|
||||
|
||||
public class NodeProperty : MonoBehaviour
|
||||
@@ -15,7 +14,7 @@ public class NodeProperty : MonoBehaviour
|
||||
propertyWindow.PropertyValueChanged += OnPropertyValueChanged;
|
||||
}
|
||||
|
||||
public void SetProertyWindow(ConveyorNode data)
|
||||
public void SetPropertyWindow(ConveyorNode data)
|
||||
{
|
||||
if (PlayerPropertyDataBase.isPlaying)
|
||||
{
|
||||
@@ -278,4 +277,10 @@ public class NodeProperty : MonoBehaviour
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
if (propertyWindow != null)
|
||||
propertyWindow.PropertyValueChanged -= OnPropertyValueChanged;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user