public PlayerContext(GameContext context, int index) { Context = context; this.PlayerIndex = index; ViewForm = new PlayerViewForm(context.RenderContext); currentScene = new StartScreenScene(Context, this); ViewForm.Show(); //TODO キャラクターのファクトリクラスの作成など PlayerModel = PMXModelWithPhysics.OpenLoad("mona-.pmx", context.RenderContext); runMotion = PlayerModel.MotionManager.AddMotionFromFile("run.vmd", false); PlayerModel.MotionManager.ApplyMotion(runMotion); EyeTextureRenderer = new OculusDisplayRenderer(context.RenderContext, context.GameWorld,0,context.OculusManager,this); ViewForm.WorldSpace.AddResource(EyeTextureRenderer); context.GameWorld.AddResource(PlayerModel); }
public PlayerContext(GameContext context, int index) { Context = context; this.PlayerIndex = index; ViewForm = new PlayerViewForm(context.RenderContext); currentScene = new StartScreenScene(Context, this); ViewForm.Show(); //TODO キャラクターのファクトリクラスの作成など PlayerModel = PMXModelWithPhysics.OpenLoad("mona-.pmx", context.RenderContext); runMotion = PlayerModel.MotionManager.AddMotionFromFile("run.vmd", false); PlayerModel.MotionManager.ApplyMotion(runMotion); EyeTextureRenderer = new OculusDisplayRenderer(context.RenderContext, context.GameWorld, 0, context.OculusManager, this); ViewForm.WorldSpace.AddResource(EyeTextureRenderer); context.GameWorld.AddResource(PlayerModel); }