Browse Source

For CSComponent (maybe other in the future) use the derived typename instead of native typename which will always be CSComponent

Josh Engebretson 9 years ago
parent
commit
bdb45f2365
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Script/AtomicNET/AtomicNET/Scene/CSComponent.cs

+ 5 - 0
Script/AtomicNET/AtomicNET/Scene/CSComponent.cs

@@ -1,9 +1,14 @@
+using System;
 namespace AtomicEngine
 {
 
     public partial class CSComponent : ScriptComponent
     {
 
+        public override string GetTypeName()
+        {
+            return GetType().Name;
+        }
 
     }