コード例 #1
0
    public void CreateFloatingText(string text, Vector3 position, Color color)
    {
        FloatingText ft = Instantiate(floatingTextPrefab, position, Quaternion.identity).GetComponent <FloatingText>();

        ft.Configure(text, color);
        ft.transform.position = position;
    }