let gameConfig = require("GameConfig"); let library = require("../Library"); cc.Class({ extends: cc.Component, properties: { gameStates: { default: null, type: cc.Node, serializable: true, }, playerController: { default: null, type: cc.Node, serializable: true, }, actionPrefabs: { default: [], type: cc.Prefab, serializable: true, }, bg: { default: null, type: cc.Node, serializable: true, }, }, onLoad () { this.gameStatesScp = this.gameStates.getComponent('GameStates'); this.playerControllerScp = this.playerController.getComponent('PlayerController'); this.delayTime = -1; }, playActions() { let actionPlay = gameConfig.actionPlay[this.gameStatesScp.currentRound]; // if(actionPlay.length == 0) return; for(let i=0;i