示例#1
0
    protected void CreateDamageNumber(int damage)
    {
        GameObject   o  = Instantiate(Resources.Load("Prefabs/UIPrefabs/Damage_Number", typeof(GameObject))) as GameObject;
        DamageNumber dn = o.AddComponent <DamageNumber> ();

        dn.ShowDamageNumber(damage, battleCamera.GetComponent <Camera>(), transform.position, tag == "Player");
    }