21 lines
No EOL
621 B
Lua
21 lines
No EOL
621 B
Lua
local XRpgMakerGameObject = require("XEntity/XRpgMakerGame/Object/XRpgMakerGameObject")
|
|
|
|
local type = type
|
|
local pairs = pairs
|
|
local Vector3 = CS.UnityEngine.Vector3
|
|
|
|
--地图格子对象
|
|
local XRpgMakerGameCube = XClass(XRpgMakerGameObject, "XRpgMakerGameCube")
|
|
|
|
function XRpgMakerGameCube:Ctor(id, gameObject)
|
|
|
|
end
|
|
|
|
--获得格子对象上方中心的坐标
|
|
function XRpgMakerGameCube:GetGameObjUpCenterPosition()
|
|
local transform = self:GetTransform()
|
|
local centerPoint = XUiHelper.TryGetComponent(transform, "CenterPoint")
|
|
return centerPoint and centerPoint.transform.position
|
|
end
|
|
|
|
return XRpgMakerGameCube |