Пример #1
0
    public void PopFloatingText(Vector3 position, string value, TextKind kind)
    {
        FloatingText newFloatingText = Instantiate(floatingTextPrefab, aboveAllCanvas.transform);

        newFloatingText.Reset(position, value, kind);
    }
Пример #2
0
    public void PopFloatingText(Transform target, int value)
    {
        FloatingText newFloatingText = Instantiate(floatingTextPrefab, aboveAllCanvas.transform);

        newFloatingText.Reset(target.position, value);
    }