You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
74 lines
1.6 KiB
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System;
|
|
|
|
namespace DisComputer
|
|
{
|
|
/**
|
|
* 游戏配置
|
|
*/
|
|
public class GameConfig
|
|
{
|
|
/// <summary>
|
|
/// 游戏状态
|
|
/// </summary>
|
|
public static GameState state = GameState.Unload;
|
|
|
|
public static SpareType[] GetItemInfos {
|
|
get {
|
|
SpareType[] data = { SpareType.JiXiang, SpareType.NeiCun, SpareType.YingPan, SpareType.XianKa, SpareType.Cpu, SpareType.DianYuan, SpareType.GuangQu, SpareType.ZhuBan };
|
|
if (state == GameState.Load)
|
|
{
|
|
Array.Reverse(data);
|
|
return data;
|
|
}
|
|
else
|
|
{
|
|
|
|
return data;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public static SpareType[] GetStoreItemInfos {
|
|
get
|
|
{
|
|
SpareType[] data = { SpareType.JiXiang, SpareType.NeiCun, SpareType.YingPan, SpareType.XianKa, SpareType.Cpu, SpareType.DianYuan, SpareType.GuangQu, SpareType.ZhuBan };
|
|
return data;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 当前关卡
|
|
/// </summary>
|
|
public static int curProgressIndex = -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 游戏状态模式
|
|
/// </summary>
|
|
public enum GameState
|
|
{
|
|
|
|
/// <summary>
|
|
/// 组装
|
|
/// </summary>
|
|
Load,
|
|
/// <summary>
|
|
/// 拆卸
|
|
/// </summary>
|
|
Unload
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|