- Timestamp:
- Apr 12, 2021, 8:51:39 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/mods/public/simulation/components/TreasureCollecter.js
r25206 r25235 66 66 TreasureCollecter.prototype.StopCollecting = function(reason) 67 67 { 68 if (this.timer) 69 { 70 let cmpTimer = Engine.QueryInterface(SYSTEM_ENTITY, IID_Timer); 71 cmpTimer.CancelTimer(this.timer); 72 delete this.timer; 73 } 68 if (!this.target) 69 return; 70 71 let cmpTimer = Engine.QueryInterface(SYSTEM_ENTITY, IID_Timer); 72 cmpTimer.CancelTimer(this.timer); 73 delete this.timer; 74 74 75 delete this.target; 75 76 … … 78 79 cmpVisual.SelectAnimation("idle", false, 1.0); 79 80 80 // The callerIID component may start collectingagain,81 // The callerIID component may start again, 81 82 // replacing the callerIID, hence save that. 82 83 let callerIID = this.callerIID;
Note:
See TracChangeset
for help on using the changeset viewer.