Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class GameEvents : MonoBehaviour
- {
- public static GameEvents instance;
- private void Awake()
- {
- instance = this;
- }
- public event Action<int> OnButtonPressed;
- public void ButtonPressed(int id)
- {
- OnButtonPressed?.Invoke(id);
- }
- public event Action<int> OnPlateTrigger;
- public void PlateTrigger(int id)
- {
- OnPlateTrigger?.Invoke(id);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment