public void PopFloatingText(Vector3 position, string value, TextKind kind) { FloatingText newFloatingText = Instantiate(floatingTextPrefab, aboveAllCanvas.transform); newFloatingText.Reset(position, value, kind); }
public void PopFloatingText(Transform target, int value) { FloatingText newFloatingText = Instantiate(floatingTextPrefab, aboveAllCanvas.transform); newFloatingText.Reset(target.position, value); }