extends 单位技能
field | type | default | note |
---|---|---|---|
type | UnitType | 生成的单位 | |
amount | int | 1 | 生成数量 |
randAmount | int | 0 | 随机额外生成数量最大值 |
spread | float | 8 | 散布半径 |
faceOutwards | boolean | true |
public SpawnDeathAbility(UnitType type, int amount, float spread){ this.type = type; this.amount = amount; this.spread = spread; } public SpawnDeathAbility(){ }