예제 #1
0
        public Texture2D buttonTexture(string path)
        {
            Texture2D texture = new Texture2D(36, 36, TextureFormat.RGBA32, false);

            texture.LoadImage(File.ReadAllBytes(Pathfinder.dllPath() + path));
            return(texture);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void Save(string cfgPath)
 {
     CfgNode.Save(Pathfinder.dllPath() + cfgPath);
 }
예제 #4
0
 public void Load(string cfgPath)
 {
     CfgNode = ConfigNode.Load(Pathfinder.dllPath() + cfgPath);
 }