private void OnEnable() { container = FindObjectOfType <ContainerTargetManager>(); if (container.IsInited) { OnTargetEnable(); } else { container.onInit += OnTargetEnable; } }
protected virtual void Awake() { CheckLocator(); containerViews = GetComponent <ContainerTargetsView>(); containerTargets = FindObjectOfType <ContainerTargetManager>(); }