Add lua script class
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
LuaScript = {
|
||||
|
||||
camera = nil,
|
||||
|
||||
initialize = function(self)
|
||||
--
|
||||
end,
|
||||
|
||||
destroy = function(self)
|
||||
--
|
||||
end,
|
||||
|
||||
update = function(self, deltaTime)
|
||||
self.camera = GetComponent("CameraComponent")
|
||||
LuaScript:updateOrthographic(deltaTime)
|
||||
LuaScript:updatePerspective(deltaTime)
|
||||
|
||||
local tmp = self.camera.fov
|
||||
self.camera.fov = 30.0
|
||||
|
||||
--
|
||||
end,
|
||||
|
||||
updateOrthographic = function(self, deltaTime)
|
||||
--
|
||||
end,
|
||||
|
||||
updatePerspective = function(self, deltaTime)
|
||||
--
|
||||
end,
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user