public GameObject[] Search(int x, int y) { int[] pos = new int[] { x, y }; Stack <GameObject> data = new Stack <GameObject>(); var ea = new SearchingPositionEventArgs(pos, data); OnSearchingPosition(ea); return(ea.Data.ToArray()); }
protected virtual void OnSearchingPosition(SearchingPositionEventArgs e) { SearchingPosition?.Invoke(this, e); }