https://github.com/starpelly/starpellylib
Tools for Unity
https://github.com/starpelly/starpellylib
unity
Last synced: 2 months ago
JSON representation
Tools for Unity
- Host: GitHub
- URL: https://github.com/starpelly/starpellylib
- Owner: Starpelly
- License: wtfpl
- Created: 2021-08-21T02:32:55.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T07:19:56.000Z (over 3 years ago)
- Last Synced: 2025-10-09T06:47:26.381Z (9 months ago)
- Topics: unity
- Language: C#
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README_.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Starpelly
Tools for Unity
Simulates the "A" key press every 0.6 seconds:
```cs
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);
}
}
}
```