¼¢»ÄÖеÄ×ÊÔ´ÊǷdz£ÖØÒªµÄ©§£¬Ã¿Ò»¸ö×ÊÔ´¶¼ÄÜÕÒµ½ËüµÄÓô¦¡£Óв»ÉÙÍæ¼ÒΪÁËÔö¼Ó²ÉÕªÊýÁ¿£¬Ïë³öÁËÕâ¸öÓÐЩ×÷±×µÄ·½·¨¡£ÏÂÃæÊÇ·½·¨½²½â£¬Ï£Íû´ó¼Ò»áϲ»¶¡£
¼¢»Ä СÐÞ¸Ä Ëæ»úÔö¼Ó²ÉÕªÊýÁ¿
ССÐ޸ģ¬Ò»´Î×î¶àΪ10¸ö£¬½Ú²ÙÓ¦¸Ã»¹ÔÚ
ÏëµÃµ½¸ü¶àÇë¸ü¸Ä math.random(9)ÖеÄÊý×Ö¡£
Ð޸ķ½·¨
´ò¿ªÎļþ¼Ðdata\scripts\components\pickable.lua
ËÑË÷
picker.components.inventory:GiveItem(loot, nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
¸ÄΪ
local pt = Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition()))
local ptnum = 1 + math.random(9)
for y = 1, ptnum do
picker.components.inventory:GiveItem(SpawnPrefab(self.product), nil, pt)
end


ÏÂÔØ
ÏÂÔØ
ÏÂÔØ
ÏÂÔØ
ÏÂÔØ
ÏÂÔØ 

ÏÂÔØ
ÏÂÔØ
ÏÂÔØ
ÏÂÔØ
ÏÂÔØ
ÏÂÔØ 
ÏÂÔØ
ϲ»¶
¸ßÐË
¹íÁ³
ºÇºÇ
ÎÞÁÄ
ÉËÐÄ









