21 lines
643 B
C#
21 lines
643 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
/********************************************************************************
|
|
*Create By CG
|
|
*Function
|
|
*********************************************************************************/
|
|
namespace CG.Framework
|
|
{
|
|
public delegate void DelegateHandler<T>(T arg) where T : IGameEvent;
|
|
public delegate void DelegateHandler();
|
|
public interface IEventManager
|
|
{
|
|
void AddEventListener<T>(DelegateHandler<T> del) where T:IGameEvent;
|
|
void Dispatch();
|
|
void RemoveListener();
|
|
void RemoveEvent();
|
|
void Clear();
|
|
}
|
|
}
|