void Awake() { TargetImageApplied = false; if(placeholderText == null) { Debug.Log("PlaceholderText not found: Find(\"/Message/PlaceholderText\")"); } _api = GetComponent<StomtAPI>(); _screenshot = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false); Reset(); StartCoroutine(this.refreshTargetIcon(AutoImageDownloadDelay)); }
// Use this for initialization void Start() { StomtAPI api = GameObject.Find("StomtPopup").GetComponent <StomtAPI>(); api.AddCustomKeyValuePair("CustomKey", "Value/Data"); }
void Awake() { _API = GetComponent<StomtAPI>(); }
// Use this for initialization void Start() { StomtAPI = GameObject.Find("StomtPopup").GetComponent <StomtAPI>(); StomtAPI.Labels = new string[] { "label1", "label2" }; }