示例#1
0
    public void SpawnDamageText(float damage, Transform target, GameObject screen)
    {
        GameObject dmgTxt = (GameObject)Instantiate(damageText, screen.GetComponent <LRScreen>().UIObject.transform);
        DamageText DTObj  = dmgTxt.GetComponent <DamageText> ();

        DTObj.Initialize(target, screen, damage);
    }