1.0.1 • Published 7 years ago

photoncocoscreator v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

PlayFab Cocos Creator Extension

  1. Overview:

Adds ability to use PlayFab in Cocos Creator without issues across platforms. Taken from the Playfab JS SDK.

  1. 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) {

    },
});
  1. Todo

Setup proper typing files and better examples maybe?