mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:43:33 +02:00
Update cat.js
This commit is contained in:
parent
d0e079ee9d
commit
0ce6a305bd
1 changed files with 6 additions and 4 deletions
|
@ -13,7 +13,9 @@
|
|||
|
||||
(function() {
|
||||
|
||||
var _this;
|
||||
Cat = function() {
|
||||
_this=this;
|
||||
this.meowSound = SoundCache.getSound("https://s3.amazonaws.com/hifi-public/sounds/Animals/cat_meow.wav");
|
||||
};
|
||||
|
||||
|
@ -29,11 +31,11 @@
|
|||
},
|
||||
|
||||
update: function() {
|
||||
if (this.injector !== null) {
|
||||
this.isMeowing = this.injector.isPlaying;
|
||||
if (_this.injector !== null) {
|
||||
_this.isMeowing = this.injector.isPlaying;
|
||||
}
|
||||
if (this.isMeowing === false) {
|
||||
this.injector = null;
|
||||
if (_this.isMeowing === false) {
|
||||
_this.injector = null;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue