|
@@ -99,8 +99,8 @@ end
|
|
|
|
|
|
|
|
function HandleMouseMove(eventType, eventData)
|
|
function HandleMouseMove(eventType, eventData)
|
|
|
if particleNode ~= nil then
|
|
if particleNode ~= nil then
|
|
|
- local x = eventData["x"]:GetInt()
|
|
|
|
|
- local y = eventData["y"]:GetInt()
|
|
|
|
|
|
|
+ local x = eventData["X"]:GetInt()
|
|
|
|
|
+ local y = eventData["Y"]:GetInt()
|
|
|
local camera = cameraNode:GetComponent("Camera")
|
|
local camera = cameraNode:GetComponent("Camera")
|
|
|
particleNode.position = camera:ScreenToWorldPoint(Vector3(x / graphics.width, y / graphics.height, 10.0))
|
|
particleNode.position = camera:ScreenToWorldPoint(Vector3(x / graphics.width, y / graphics.height, 10.0))
|
|
|
end
|
|
end
|