LandTransferData

λžœλ“œ μ΄λ™μ‹œ 전달할 데이터 κ΅¬μ‘°μ—μš”.

ν•¨μˆ˜

ObjectList DataArray()

데이터 λ¦¬μŠ€νŠΈμ—μš”(key value pair μ—μš”).

number DataCount()

데이터 κ°œμˆ˜μ—μš”.

-- μƒ˜ν”Œ --

local function TeleportFinish(player, TransferData)
    if player == nil then
        return
    end

    print("Teleport Data Count : ", TransferData:DataCount())	--AddLandTransferData 둜 μ„€μ •ν•œ λ°μ΄ν„°μ˜ κ°œμˆ˜μ—μš”.

    for i, key, value in pairs(TransferData:DataArray()) do
        print(key)		--AddLandTransferData 둜 μ„€μ •ν•œ λ°μ΄ν„°μ˜ Key κ°’μ΄μ—μš”.
        print(value)	--AddLandTransferData 둜 μ„€μ •ν•œ λ°μ΄ν„°μ˜ Value κ°’μ΄μ—μš”.
    end
end
Game.OnTeleportFinishEvent:Connect(TeleportFinish) --ν…”λ ˆν¬νŠΈκ°€ 끝났을 λ•Œ 이전 λžœλ“œμ—μ„œ μ„€μ •ν•œ 데이터λ₯Ό 받을 ν•¨μˆ˜λ₯Ό μ—°κ²°ν•΄μš”.

Last updated