feat(battle-engine): copy-loop closure to 3282 files (member-surface frontier)
This commit is contained in:
20
SVSim.BattleEngine/Engine/UIDragDropRoot.cs
Normal file
20
SVSim.BattleEngine/Engine/UIDragDropRoot.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
|
||||
[AddComponentMenu("NGUI/Interaction/Drag and Drop Root")]
|
||||
public class UIDragDropRoot : MonoBehaviour
|
||||
{
|
||||
public static Transform root;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
root = base.transform;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
if (root == base.transform)
|
||||
{
|
||||
root = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user