Пример #1
0
    private IEnumerator Process()
    {
        Debug.Log("Starting...");

        Debug.Log("Waiting for 2s...");
        yield return(new WaitForSeconds(2f));

        Debug.Log("Sending event 'barrier'...");
        Autotesting.Event("barrier");

        Debug.Log($"Changing Sample.instance.value from '{value}' to '100'...");
        value = 100;

        Debug.Log("Sending event 'value_updated'...");
        Autotesting.Event("value_updated");
    }
Пример #2
0
    private void Start()
    {
        Autotesting.Initialize(Debug.Log, RestartApp, OnScriptError);

        StartCoroutine(Process());
    }