예제 #1
0
파일: GameObject.cs 프로젝트: reelgood/dcsg
 public static void Destroy(GameObject gameObject)
 {
     gameObject.taggedForDestruction = true;
     for (int i = 0; i < gameObject._components.Count; i++)
     {
         gameObject._components[i].enabled = false;
         gameObject._components[i].OnDestroy();
     }
     gameObject._components = null;
 }
예제 #2
0
파일: DCSG.cs 프로젝트: reelgood/dcsg
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            Initializer.Initialize(); //Initialize Everything

            mainCamera = new GameObject("Main Camera");
            mainCamera.AddComponent(typeof(Camera));
        }