48 lines
844 B
C#
48 lines
844 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Date:Singleton<Date>
|
|
{
|
|
public List<Item> ItemDate = new List<Item>();
|
|
|
|
public List<LevelUpDefine> UpDate = new List<LevelUpDefine>();
|
|
|
|
}
|
|
|
|
public enum ItemClass
|
|
{
|
|
User,
|
|
Up,
|
|
}
|
|
[Serializable]
|
|
public class CharInfo
|
|
{
|
|
public string DatePath;
|
|
|
|
public string playerName;
|
|
public int Level;
|
|
public int exp;
|
|
|
|
public float maxHp;
|
|
public float attack;
|
|
|
|
//局内属性
|
|
public int currentMap;
|
|
public float currentHp;
|
|
public float testAttack;
|
|
|
|
//背包数据
|
|
public Dictionary<int, int> BagInfo;//背包字典
|
|
public List<int> BagKey;
|
|
public List<int> BagValue;
|
|
|
|
//升级数据
|
|
|
|
public Dictionary<int, bool> UpInfo;//升级字典
|
|
public List<int> UpKey;
|
|
public List<bool> UpValue;
|
|
}
|
|
|