created Engine class

This commit is contained in:
2025-04-24 04:50:56 +05:00
parent 366dd1214c
commit 3477b05cd8
11 changed files with 152 additions and 106 deletions

View File

@@ -65,7 +65,8 @@ public class GameObject
if(Components.ContainsKey(t))
return false;
Components.Add(t, (Component)Activator.CreateInstance(t, this));
Component component = (Component)Activator.CreateInstance(t, this);
Components.Add(t, component);
return true;
}
private bool TryCreateComponent_internal(string fullName)