You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
467 B
33 lines
467 B
4 years ago
|
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,
|
||
|
|
||
|
}
|