MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / gotoAndStop

Method gotoAndStop

src/scripting/api/Tween/Tween.ts:117–124  ·  view source on GitHub ↗
(position:number)

Source from the content-addressed store, hash-verified

115 }
116
117 public gotoAndStop(position:number):void {
118 this._currentTime = position;
119 if (this._isPlaying) {
120 this._isPlaying = false;
121 this._timer.stop();
122 }
123 this.step(this._target, this._currentTime, this._duration);
124 }
125
126 public gotoAndPlay(position:number):void {
127 this._currentTime = position;

Callers 2

stopMethod · 0.95
setPlayTimeMethod · 0.80

Calls 1

stopMethod · 0.65

Tested by

no test coverage detected