jh - 在线代码运行


            
执行结果

名称:jh

当前代码

  local function OnDeploy (inst, pt)

  SpawnPrefab(data.animname.."_mushroom").Transform:SetPosition(pt.x, pt.y, pt.z)

  inst.components.stackable:Get():Remove()

  end

  inst:AddComponent("deployable")

  inst.components.deployable.ondeploy = OnDeploy