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); }
internal void Add(GameObject go) { set.Add(go); }