示例#1
0
文件: Making.cs 项目: Otto404/wp-xna
        internal virtual void Init( Scene scene )
        {
            this.scene = scene;

            if ( this is ILockable )
                ( this as ILockable ).Location += scene.Location;
        }
示例#2
0
        internal SceneLoader( World world, Scene[] scenes, Type[] afterSceneTypes )
        {
            if ( null == world )
                throw new ArgumentNullException ( "world", "world can't be null" );

            if ( null != scenes )
                foreach ( Scene scene in scenes )
                    if ( null != scene )
                    {
                        scene.World = world;
                        scene.IsClosed = false;

                        this.scenes.Add ( scene );
                    }

            this.afterSceneTypes = afterSceneTypes;
        }
示例#3
0
文件: Button.cs 项目: Otto404/wp-xna
        internal override void Init( Scene scene )
        {
            base.Init ( scene );

            this.backgroundMovie.Init ( scene );
        }