Пример #1
0
 public static CozySprite Create(string path, Rectangle rect)
 {
     var sp = new CozySprite();
     if (!sp.InitWithRect(path, rect))
     {
         return null;
     }
     return sp;
 }
Пример #2
0
 public static CozySprite Create(string path)
 {
     var sp = new CozySprite();
     if(!sp.InitWithFile(path))
     {
         return null;
     }
     return sp;
 }
Пример #3
0
 public static CozySprite Create()
 {
     var sp = new CozySprite();
     if(!sp.Init())
     {
         return null;
     }
     return sp;
 }
Пример #4
0
        public static CozySprite Create(CozyTexture texture)
        {
            var sp = new CozySprite();

            if (!sp.InitWithTexture(texture))
            {
                return(null);
            }
            return(sp);
        }
Пример #5
0
        public static CozySprite Create(string path, Rectangle rect)
        {
            var sp = new CozySprite();

            if (!sp.InitWithRect(path, rect))
            {
                return(null);
            }
            return(sp);
        }
Пример #6
0
        public static CozySprite Create(string path)
        {
            var sp = new CozySprite();

            if (!sp.InitWithFile(path))
            {
                return(null);
            }
            return(sp);
        }
Пример #7
0
        public static CozySprite Create()
        {
            var sp = new CozySprite();

            if (!sp.Init())
            {
                return(null);
            }
            return(sp);
        }
Пример #8
0
 public static CozySprite Create(CozyTexture texture)
 {
     var sp = new CozySprite();
     if(!sp.InitWithTexture(texture))
     {
         return null;
     }
     return sp;
 }