示例#1
0
        public override void LoadContent()
        {
            for (int i = 1; i < 4; i++)
            {
                SetTextureMap(ContentProvider.LoadTexture("Bug" + i.ToString()));
                SourceRectangles.Add(SourceRectangle.Value);
            }

            SourceRectangle = SourceRectangles.First();
        }
示例#2
0
        public override void LoadContent()
        {
            foreach (string key in textureKeys)
            {
                SetTextureMap(ContentProvider.LoadTexture(key));
                SourceRectangles.Add(SourceRectangle.Value);
            }

            SourceRectangle = SourceRectangles.First();
        }
示例#3
0
        public override void LoadContent()
        {
            SetTextureMap(ContentProvider.LoadTexture("Wolf1"));
            SourceRectangles.Add(SourceRectangle.Value);

            SetTextureMap(ContentProvider.LoadTexture("Wolf2"));
            SourceRectangles.Add(SourceRectangle.Value);

            SourceRectangle = SourceRectangles.First();
        }