public Texture2D buttonTexture(string path) { Texture2D texture = new Texture2D(36, 36, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(Pathfinder.dllPath() + path)); return(texture); }
public AudioClip BeepSound(string path) { AudioClip returnClip; string wwwURL = "File:///" + Pathfinder.dllPath() + path; Debug.Log(wwwURL); wwwURL = wwwURL.Replace(@"\", "/"); WWW www = new WWW(wwwURL); Debug.Log(www.ToString()); Debug.Log(wwwURL); returnClip = www.GetAudioClip(false); return(returnClip); }
public void Save(string cfgPath) { CfgNode.Save(Pathfinder.dllPath() + cfgPath); }
public void Load(string cfgPath) { CfgNode = ConfigNode.Load(Pathfinder.dllPath() + cfgPath); }