創建傷害跳字

STD 庫
客戶端
可在 Mobile 端和 PC 端使用

創造傷害跳字

聲明

func CreateDamageNum(content string, fontSize int, fontColor Color, duration int, target entity<Entity>, offset Vector3, randomRange Vector2, doTween bool)
go

參數

輸入

名稱 類型 描述
內容 String 跳字內容
字體大小 Int 字體大小
字體顏色 Color 字體顏色
持續時間 (ms) Int 停留時長,單位毫秒
目標 Entity 受到傷害的實體
偏移 Vector3 傷害跳字相對於目標實體世界座標的偏移量
隨機範圍 Vector2 在傷害跳字位置再次進行隨機位置修正的範圍大小
執行補間動畫 Bool 是否執行補間動畫