void Components_ComponentAdded(Type arg1, MyComponentBase arg2) { if (arg1 == typeof(MyGameLogicComponent)) { m_logic = arg2 as MyMeteorGameLogic; } }
void Components_ComponentAdded(Type arg1, MyComponentBase arg2) { if (arg1 == typeof(MyGameLogicComponent)) m_logic = arg2 as MyMeteorGameLogic; }
public MyMeteor() { Components.ComponentAdded += Components_ComponentAdded; GameLogic = new MyMeteorGameLogic(); Render = new MyRenderComponentDebrisVoxel(); }
public MyMeteor() { Components.ComponentAdded += Components_ComponentAdded; GameLogic = new MyMeteorGameLogic(); Render = new MyRenderComponentDebrisVoxel(); }