Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- namespace GameCore
- {
- using Extentions;
- public class GameEventListenerGameObject : MonoBehaviour
- {
- [SerializeField] GameEventGameObject Event;
- [SerializeField] UnityEventGameObject Responce;
- public void OnEventRaised(GameObject arg)
- {
- Responce.Invoke(arg);
- }
- public void OnEnable()
- {
- Event.RegisterListener(this);
- }
- public void OnDisable()
- {
- Event.UnRegisterListener(this);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement