mirror of https://github.com/axmolengine/axmol.git
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:
parent
513092bd88
commit
c69823ba6f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue