1.0.1 • Published 7 years ago
photoncocoscreator v1.0.1
PlayFab Cocos Creator Extension
- Overview:
Adds ability to use PlayFab in Cocos Creator without issues across platforms. Taken from the Playfab JS SDK.
- Example Usage
var Photon = require('photoncocoscreator')
cc.Class({
extends: cc.Component,
properties: {
label: {
default: null,
type: cc.Label
},
// defaults, set visually when attaching this script to the Canvas
text: 'Hello, World!'
},
// use this for initialization
onLoad: function () {
//this.label.string = this.text;
console.log(Photon);
},
// called every frame
update: function (dt) {
},
});
- Todo
Setup proper typing files and better examples maybe?