public RenderObject(GameObject parentGO, String assetName)
     : base(parentGO)
 {
     m_fScale = 1.0f;
     m_fRotation = 0.0f;
     m_assetName = assetName;
     m_renderPosition = Vector2.Zero;
     m_Type = ComponentType.COMPONENT_Rendering;
 }
        public void AddGameObject(GameObject go)
        {
            if (go != null)
            {
                m_gameObjects.AddLast(go);

                // Add components to other modules
                Network.NetworkManager.GetInstance().AddNetworkObject(go.GetComponentByTypeOrNULL(Core.ICoreComponent.ComponentType.COMPONENT_Networking));
                Rendering.Renderer.GetInstance().AddRenderObject(go.GetComponentByTypeOrNULL(Core.ICoreComponent.ComponentType.COMPONENT_Rendering));
                Physics.PhysicsWorld.GetInstance().AddPhysicsObject(go.GetComponentByTypeOrNULL(Core.ICoreComponent.ComponentType.COMPONENT_Physics));
            }
        }
 public ICoreComponent(GameObject ownerGO)
 {
     m_ownerGO = ownerGO;
 }
 public NetworkObject(GameObject parentGO)
     : base(parentGO)
 {
     m_Type = ComponentType.COMPONENT_Networking;
 }
 public PhysicsObject(GameObject parentGO)
     : base(parentGO)
 {
     m_Type = ComponentType.COMPONENT_Physics;
     m_ownerGO = parentGO;
 }