Chris Gregan
9 years ago
4 changed files with 2255 additions and 253 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,27 @@ |
|||||||
|
using UnityEngine; |
||||||
|
using UnityEngine.UI; |
||||||
|
using System.Collections; |
||||||
|
|
||||||
|
namespace Fungus |
||||||
|
{ |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Test utility that simulates user clicking on a button after a delay. |
||||||
|
/// </summary> |
||||||
|
public class FakeButtonClick : MonoBehaviour |
||||||
|
{ |
||||||
|
public float delay; |
||||||
|
|
||||||
|
void Start () |
||||||
|
{ |
||||||
|
Invoke("DoFakeInput", delay); |
||||||
|
} |
||||||
|
|
||||||
|
void DoFakeInput() |
||||||
|
{ |
||||||
|
Button button = GetComponent<Button>(); |
||||||
|
button.onClick.Invoke(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: b3c48140c357649cbab8cf65a56093b5 |
||||||
|
timeCreated: 1459430825 |
||||||
|
licenseType: Free |
||||||
|
MonoImporter: |
||||||
|
serializedVersion: 2 |
||||||
|
defaultReferences: [] |
||||||
|
executionOrder: 0 |
||||||
|
icon: {instanceID: 0} |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
Loading…
Reference in new issue