Пример #1
0
        public void Initialize(SceneContext context)
        {
            Console.WriteLine("init");

            this.worldManager = context.GetComponent <WorldManager>();
            this.camera       = context.GetComponent <ProtoCamera>();

            Proto.Initialize(context.SceneResourceManager, this.worldManager);
            ProtowarLibrary.Initialize(context.SceneResourceManager, this.worldManager);
        }
Пример #2
0
        public override void BuildScene()
        {
            this.cam = new ProtoCamera()
            {
                Zoom = 4f, EnableTracking = true, EnableRotationTracking = true, MinRotation = -0.05f, MaxRotation = 0.05f, SmoothSpeedMultiplicator = 50f
            };
            this.AddComponent(this.cam);
            this.AddComponent(new WorldManager());
            this.AddComponent(new GameplayComponent());



            //TODO: add components

            InputConfig.Instance.Init(this.Context.InputManager);
        }
Пример #3
0
 public void Initialize(SceneContext context)
 {
     this.camera = context.GetComponent <ProtoCamera>();
 }