void Awake() { Debug.Log("CSP Gui Awake"); var texture = new Texture2D(36, 36, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes("GAMEDATA/CUSTOMERSATISFACTIONPROGRAM/CSP.png")); Debug.Log(texture.ToString()); cspLaunchButton = ApplicationLauncher.Instance.AddModApplication(GuiOn, GuiOff, null, null, null, null, ApplicationLauncher.AppScenes.ALWAYS, texture); }
private void PickImageFinished (ePickImageFinishReason _reason, Texture2D _image) { AddNewResult("Request to pick image from gallery finished. Reason for finish is " + _reason + "."); AppendResult(string.Format("Selected image is {0}.", (_image == null ? "NULL" : _image.ToString()))); }