created Engine class
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user