コード例 #1
0
        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());
        }
コード例 #2
0
 protected virtual void OnSearchingPosition(SearchingPositionEventArgs e)
 {
     SearchingPosition?.Invoke(this, e);
 }