Add lua script class

This commit is contained in:
Riyyi
2021-01-24 02:11:26 +01:00
parent 901d3e2355
commit 8a740f55ba
3 changed files with 283 additions and 0 deletions
+32
View File
@@ -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,
}