Пример #1
0
        public static bool LoadTexture(string name, string file, uint col = 1, uint row = 1)
        {
            if (textures.ContainsKey(name))
            {
                Debug.PrintNotification("Texture name already used: ", name);
                return(false);
            }
            Texture2D tex2d = AssetManager.GetResource <Texture2D>(file);

            if (tex2d == null)
            {
                return(false);
            }
            rawTexs.Add(new RawTexture(tex2d, name, col, row));
            return(true);
        }
Пример #2
0
 internal void Add(GameObject go)
 {
     set.Add(go);
 }