private void InitializeIfNeeded() { if (Controller != null) { var parent = transform.parent; while (parent != null) { var component = parent.GetComponent <ParticlesAnimatedBezierFlowController>(); if (component != null) { Controller = component; break; } parent = parent.transform.parent; } if (Controller == null) { Debug.LogError("Could not find a ParticlesAnimatedBezierFlowController in object parents"); } else { Controller.RegisterInformer(Index, this); UpdatePosition(); } } }
public CurveDrawingHelper(UnityEditor.Editor uiClient, ParticlesAnimatedBezierFlowController flowController) { _flowController = flowController; _handleTransform = _flowController.transform; }