| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- const GameProgress = cc.Enum ({
- default:0,
- Race:1,
- LongJump:2,
- Hurdle:3,
- RideBike:4,
- Javelin:5,
- });
- cc.Class({
- extends: cc.Component,
- properties: {
- CurrentTime:0,
- CurrentProgress: {
- default : GameProgress.Race,
- type : cc.Enum(GameProgress)
- },
- HostName:'',
- BWaitingToConnect:false,
- bConnect:false,
- bReadyToRun:false,
- BStartGame:false,
- myRandomc : [],
- EnterStartLinePlayersArray:[],
- EnterFinishLinePlayersArray:[],
- EndLinePositionX:0,
- StartLinePositionX:0,
- ReadyToRunDuration:2,
- bPreTransport:false,
- bStopAllAnimationAndSchedule:false,
- bSyncPositionXRange:10,
- //是不是机器人
- isRobot:false
- },
- start () {
- this.bConnect=false;
- this.bReadyToRun=false;
- this.myRandomc = [];
- this.StartLinePositionX = 0;
- this.bStopAllAnimationAndSchedule = false;
- this.isRobot = false;
- },
- // update : function (dt) {
- // // cc.log('CurrentProgress='+this.CurrentProgress);
- // },
- getMyRandomc : function () {
- return this.myRandomc;
- }
- });
- var myRandomcs = {
- myRandomc : []
- }
- module.exports = {
- GameProgress : cc.Enum(GameProgress),
- myRandomc :myRandomcs.myRandomc
- };
|