void OnDisable() { LinePathManager lpm = LinePathManager.Instance; if (lpm != null) { lpm.Remove(this); } }
void OnEnable() { LinePathManager lpm = LinePathManager.Instance; if (lpm != null) { lpm.Add(this); } }