summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/Graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Framework/Graphics')
-rw-r--r--Source/Asura.Framework/Graphics/Animator.lua16
-rw-r--r--Source/Asura.Framework/Graphics/Camera.lua8
-rw-r--r--Source/Asura.Framework/Graphics/particle_system.lua4
3 files changed, 14 insertions, 14 deletions
diff --git a/Source/Asura.Framework/Graphics/Animator.lua b/Source/Asura.Framework/Graphics/Animator.lua
index 7cc18a1..02f67ff 100644
--- a/Source/Asura.Framework/Graphics/Animator.lua
+++ b/Source/Asura.Framework/Graphics/Animator.lua
@@ -3,21 +3,21 @@ AsuraEngine.Animator = AsuraEngine.Component.Sub("Animator")
local Animator = AsuraEngine.Animator
-- Animator inspector variables.
-Animator.mSpriteRenderer = AsuraEngine.Type.SpriteRenderer
-Animator.mAnimation = AsuraEngine.Type.Animation
+Animator.spriteRenderer = AsuraEngine.Type.SpriteRenderer
+Animator.animation = AsuraEngine.Type.Animation
-function Animator:Ctor(entity, animation)
- self.base(entity)
- self.mSpriteRenderer = entity:GetSpriteRenderer()
- self.mAnimation = animation
+function Animator:Ctor(gameobject, animation)
+ self.base(gameobject)
+ self.spriteRenderer = gameobject:GetSpriteRenderer()
+ self.animation = animation
end
function Animator:SetAnimation(animation)
- self.mAnimation = animation
+ self.animation = animation
end
function Animator:GetAnimation()
- return self.mAnimation
+ return self.animation
end
function Animator:OnUpdate(dt)
diff --git a/Source/Asura.Framework/Graphics/Camera.lua b/Source/Asura.Framework/Graphics/Camera.lua
index 039de1a..c8176f8 100644
--- a/Source/Asura.Framework/Graphics/Camera.lua
+++ b/Source/Asura.Framework/Graphics/Camera.lua
@@ -2,12 +2,12 @@ AsuraEngine.Camera = AsuraEngine.Component.Sub("Camera")
local Camera = AsuraEngine.Camera
-Camera.mIsCulling = AsuraEngine.Type.Bool
-Camera.mIsOnScreen = AsuraEngine.Type.Bool
+Camera.isCulling = AsuraEngine.Type.Bool
+Camera.isOnScreen = AsuraEngine.Type.Bool
function Camera.Ctor(self)
- self.mIsCulling = false
- self.mIsOnScreen = false
+ self.isCulling = false
+ self.isOnScreen = false
end
function Camera.OnUpdate(dt)
diff --git a/Source/Asura.Framework/Graphics/particle_system.lua b/Source/Asura.Framework/Graphics/particle_system.lua
index 17d52e7..055d1b2 100644
--- a/Source/Asura.Framework/Graphics/particle_system.lua
+++ b/Source/Asura.Framework/Graphics/particle_system.lua
@@ -4,8 +4,8 @@ AsuraEngine.ParticleSystem = AsuraEngine.Component.Sub("ParticleSystem")
local ParticleSystem = AsuraEngine.ParticleSystem
-function ParticleSystem.Ctor(self, entity, def)
- self.base(entity)
+function ParticleSystem.Ctor(self, gameobject, def)
+ self.base(gameobject)
self.spriteRenderer = AsuraEngine.SpriteRenderer.New()
end