493 B
493 B
Starpelly
Tools for Unity
Simulates the "A" key press every 0.6 seconds:
using UnityEngine;
using Starpelly.OS;
public class test : MonoBehaviour
{
private float action = 0.0f;
private float period = 0.6f;
private void Start()
{
Application.runInBackground = true;
}
private void Update()
{
if (Time.time > action)
{
action += period;
Windows.KeyPress(Starpelly.KeyCodeWin.KEY_A);
}
}
}