@@ -157,7 +157,7 @@ func (t *tower) addObj(obj *aoiobj, fromOtherTower *tower) {
157157 if watcher == obj {
158158 continue
159159 }
160- watcher .aoi .Callback .OnEnterAOI (obj .aoi )
160+ watcher .aoi .callback .OnEnterAOI (obj .aoi )
161161 }
162162 } else {
163163 // obj moved from other tower to this tower
@@ -168,7 +168,7 @@ func (t *tower) addObj(obj *aoiobj, fromOtherTower *tower) {
168168 if _ , ok := t .watchers [watcher ]; ok {
169169 continue
170170 }
171- watcher .aoi .Callback .OnLeaveAOI (obj .aoi )
171+ watcher .aoi .callback .OnLeaveAOI (obj .aoi )
172172 }
173173 for watcher := range t .watchers {
174174 if watcher == obj {
@@ -177,7 +177,7 @@ func (t *tower) addObj(obj *aoiobj, fromOtherTower *tower) {
177177 if _ , ok := fromOtherTower .watchers [watcher ]; ok {
178178 continue
179179 }
180- watcher .aoi .Callback .OnEnterAOI (obj .aoi )
180+ watcher .aoi .callback .OnEnterAOI (obj .aoi )
181181 }
182182 }
183183}
@@ -190,7 +190,7 @@ func (t *tower) removeObj(obj *aoiobj, notifyWatchers bool) {
190190 if watcher == obj {
191191 continue
192192 }
193- watcher .aoi .Callback .OnLeaveAOI (obj .aoi )
193+ watcher .aoi .callback .OnLeaveAOI (obj .aoi )
194194 }
195195 }
196196}
@@ -205,7 +205,7 @@ func (t *tower) addWatcher(obj *aoiobj) {
205205 if neighbor == obj {
206206 continue
207207 }
208- obj .aoi .Callback .OnEnterAOI (neighbor .aoi )
208+ obj .aoi .callback .OnEnterAOI (neighbor .aoi )
209209 }
210210}
211211
@@ -219,7 +219,7 @@ func (t *tower) removeWatcher(obj *aoiobj) {
219219 if neighbor == obj {
220220 continue
221221 }
222- obj .aoi .Callback .OnLeaveAOI (neighbor .aoi )
222+ obj .aoi .callback .OnLeaveAOI (neighbor .aoi )
223223 }
224224}
225225
0 commit comments