示例#1
0
 public MouseOverBlock(WorldPosition position, WorldManager manager, Map map, PlayerAvatar parent)
     : base(position, manager)
 {
     this.parent = parent;
     this.map = map;
     this.HasFixedPosition = false;
 }
        public override void LoadContent(Game game)
        {
            base.LoadContent(game);

            MouseOverBlock.LoadContent(game);

            Avatar = new PlayerAvatar(new WorldPosition(0, 0, 0, 3, -5), this);
            Camera.StartFollowing(Avatar);

            TestBlock = new MouseOverBlock(new WorldPosition(0, 0, 0, 3, -2),this, Map, Avatar);
        }