cc.PI2 was only present in html5 release, added it into JSB (#18860)

[JavaScript] cc.PI2 was only present in html5 release, added it into JSB
This commit is contained in:
Ricardo Petrére 2018-05-30 09:36:21 -03:00 committed by leda
parent 59c854a159
commit dfdaf9ed61
1 changed files with 6 additions and 0 deletions

View File

@ -301,6 +301,12 @@ cc.INVALID_INDEX = -1;
*/
cc.PI = Math.PI;
/**
* @constant
* @type Number
*/
cc.PI2 = Math.PI * 2;
/**
* @constant
* @type Number