using UnityEngine; public class PaymentEmulator : MonoBehaviour { public KeyCode key; void Update() { if (Input.GetKeyDown(key)) PaymentSystem.AddCredit(); } }