|
@@ -213,7 +213,6 @@ export class Spine extends ViewContainer {
|
|
this._debug = value;
|
|
this._debug = value;
|
|
}
|
|
}
|
|
|
|
|
|
- private autoUpdateWarned = false;
|
|
|
|
private _autoUpdate = true;
|
|
private _autoUpdate = true;
|
|
|
|
|
|
public get autoUpdate (): boolean {
|
|
public get autoUpdate (): boolean {
|
|
@@ -223,9 +222,7 @@ export class Spine extends ViewContainer {
|
|
public set autoUpdate (value: boolean) {
|
|
public set autoUpdate (value: boolean) {
|
|
if (value) {
|
|
if (value) {
|
|
Ticker.shared.add(this.internalUpdate, this);
|
|
Ticker.shared.add(this.internalUpdate, this);
|
|
- this.autoUpdateWarned = false;
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
|
|
+ } else {
|
|
Ticker.shared.remove(this.internalUpdate, this);
|
|
Ticker.shared.remove(this.internalUpdate, this);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -262,11 +259,6 @@ export class Spine extends ViewContainer {
|
|
|
|
|
|
/** If {@link Spine.autoUpdate} is `false`, this method allows to update the AnimationState and the Skeleton with the given delta. */
|
|
/** If {@link Spine.autoUpdate} is `false`, this method allows to update the AnimationState and the Skeleton with the given delta. */
|
|
public update (dt: number): void {
|
|
public update (dt: number): void {
|
|
- if (this.autoUpdate && !this.autoUpdateWarned) {
|
|
|
|
- console.warn('You are calling update on a Spine instance that has autoUpdate set to true. This is probably not what you want.');
|
|
|
|
- this.autoUpdateWarned = true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.internalUpdate(0, dt);
|
|
this.internalUpdate(0, dt);
|
|
}
|
|
}
|
|
|
|
|