cc.Follow not working on mobile

When using a cc.Follow action, I've tested on mobile devices (Android & iOS) and it's not working. This changed fixed the problem.
This commit is contained in:
Ricardo Petrére 2017-04-06 08:45:06 -03:00 committed by GitHub
parent 513092bd88
commit c69823ba6f
1 changed files with 2 additions and 2 deletions

View File

@ -427,8 +427,8 @@ cc.Speed.prototype._ctor = function(action, speed) {
cc.Follow.prototype._ctor = function (followedNode, rect) {
if(followedNode)
rect ? ret.initWithTarget(followedNode, rect)
: ret.initWithTarget(followedNode);
rect ? this.initWithTarget(followedNode, rect)
: this.initWithTarget(followedNode);
};
cc.OrbitCamera.prototype._ctor = function (t, radius, deltaRadius, angleZ, deltaAngleZ, angleX, deltaAngleX) {