public void ShowPopup(string text, Vector2 viewportPoint, Color c) { GameObject popup = PoolManager.instance.GetObjectForName(_scorePopupPrefab.name, false, Vector3.zero, Quaternion.identity, null); if (popup) { popup.transform.SetParent(_transform, false); PopupText popupText = popup.GetComponent <PopupText>(); popupText.RectTransform.anchorMin = viewportPoint; popupText.RectTransform.anchorMax = viewportPoint; popupText.Show(text, PopupText.DEFAULT_FADE_DELAY, PopupText.DEFAULT_FADE_IN_DURATION, PopupText.DEFAULT_FADE_OUT_DURATION, c, PopupText.PopupAnimMode.Scale, false, false); } }