protected async Task HandleCreate() { await OnCreateCallback.InvokeAsync(new Dictionary <string, List <string> >() { { GroupName, SelectedClientIdList } }); SelectedClientIdList.Clear(); }
public T Use(OnCreateCallback onCreate = null) { if (AvailableCount <= 0) { Debug.Assert(onCreate != null); available.Add(onCreate()); } var toUse = available[0]; Use(toUse); return(toUse); }
public void Set(string path, OnCreateCallback callback) { _path = path; Name = Path.GetFileNameWithoutExtension(path); _onCreateCallback = callback; var maps = FindObjectsOfType(typeof(TilerMap)).Cast <TilerMap>().ToArray(); foreach (var map in maps) { var y = map.transform.position.y; if (y > _height) { _height = y; } } _height += 0.000001f; }
public void Set(string path, OnCreateCallback callback) { _path = path; Name = Path.GetFileNameWithoutExtension(path); _onCreateCallback = callback; var maps = FindObjectsOfType(typeof(TilerMap)).Cast<TilerMap>().ToArray(); foreach (var map in maps) { var y = map.transform.position.y; if (y > _height) { _height = y; } } _height += 0.000001f; }