Ejemplo n.º 1
0
        /// <summary>
        /// Init the scene.
        /// </summary>
        public GameScene()
        {
            // create physical world
            _physics = new Core.Physics.PhysicsWorld();

            // create user interface
            UserInterface = GeonBitMain.Instance.UiEnabled ? new UI.UserInterface() : null;

            // create scene root
            Root = new RootGameObject(this, SceneNodeType.Simple);
            Root.SceneNode.DisableCulling = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Init the scene.
        /// </summary>
        public GameScene()
        {
            // create physical world
            _physics = new Core.Physics.PhysicsWorld();

            // create user interface
            UserInterface = GeonBitMain.Instance.UiEnabled ? new UI.UserInterface() : null;

            // count the event
            Core.Utils.CountAndAlert.Count(Core.Utils.CountAndAlert.PredefAlertTypes.AddedOrCreated);

            // create scene root
            Root = new RootGameObject(this, SceneNodeType.Simple);
            Root.SceneNode.DisableCulling = true;
        }