public void ElementStartVisible(GameObject target) { BaseBehavior baseBehaviorComponent = target.GetComponent <BaseBehavior>(); BaseBehavior senderBaseBehavior = gameObject.GetComponentInParent <BaseBehavior>(); baseBehaviorComponent.StartVisible(senderBaseBehavior); // Debug.Log("ElementStartVisible: " + target.name); }