Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dictionary<string, List< System.Action<int, float, string> > > a = new Dictionary<string, List< System.Action< int, float, string > > >();
- public void AddEvent(string name, System.Action<int, float, string> del ,System.Func<bool> decision = null)
- {
- if(a.ContainsKey(name))
- {
- a[name].Add(del);
- }
- else
- {
- List<System.Action<int, float, string>> list = new List<System.Action<int, float, string>>();
- list.Add(del);
- a.Add(name, list);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement