模型Model脚本(GameModel)
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
//model是双向的,中间的
public class GameModel : MonoBehaviour {
//委托model去通知自身view(是用事件完成的),实例---(通知改变)
public event UpdateDataEventHandle updateDataEvent;
//玩家名称
private string playerName;
//玩家经验
private float playerExperience;
//玩家等级
private float playerLevel;
public