public void OnPointerClick(PointerEventData eventData) { if (!isOpen) { return; } turretManager.SetNewIndex(myIndex); }