コード例 #1
0
ファイル: StomtPopup.cs プロジェクト: stomt/stomt-unity-sdk
        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));
        }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        StomtAPI api = GameObject.Find("StomtPopup").GetComponent <StomtAPI>();

        api.AddCustomKeyValuePair("CustomKey", "Value/Data");
    }
コード例 #3
0
ファイル: StomtCreation.cs プロジェクト: mhmadeveloper/unity
 void Awake()
 {
     _API = GetComponent<StomtAPI>();
 }
コード例 #4
0
    // Use this for initialization
    void Start()
    {
        StomtAPI = GameObject.Find("StomtPopup").GetComponent <StomtAPI>();

        StomtAPI.Labels = new string[] { "label1", "label2" };
    }