|
@@ -24,10 +24,24 @@ export class gameManager extends Component {
|
|
|
public static user_level_data:unlock_levels = new unlock_levels();
|
|
|
public static PreloadingLevelImgNumber:number = 0;//执行预加载的数量
|
|
|
public static cache:Map<string,SpriteFrame[]> = new Map();
|
|
|
+ public static test_user_list:string[] = [];
|
|
|
start() {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public static isTestUser(){
|
|
|
+ for (let index = 0; index < gameManager.test_user_list.length; index++) {
|
|
|
+ const element = gameManager.test_user_list[index];
|
|
|
+ if(parseInt(element)==gameManager.userInfo.id){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static init_test_user_list(list:string[]){
|
|
|
+ gameManager.test_user_list = list;
|
|
|
+ }
|
|
|
public static init_unlock_levels(){
|
|
|
|
|
|
for (let index = 0; index < gameManager.g_server_play_list_data.list.length; index++) {
|