private void InitializeSelectionInteractionManager() { if (selectionInteractionManager == null) { selectionInteractionManager = GetComponent <SelectionInteractionManager>(); } if (selectionInteractionManager != null) { selectionInteractionManager.SelectionUpdated += Resize; } }
void InitializeInteractionManager() { if (interactionManager == null) { interactionManager = gameObject.GetComponent <SelectionInteractionManager>(); if (interactionManager == null) { interactionManager = gameObject.AddComponent <SelectionInteractionManager>(); interactionManager.PreviewCamera = renderCamera; interactionManager.RectTransform = transformTarget; } } }