1.创建一个分数模型;
ScoresModel
public int scores{get;set;}
2.再创建一个Service(对外界进行交互):IScoresService
pubulic interface IScoresService{
void getscore(string url);
int OnReceIveScore(); //收到发过来的分数
void UpdateScore(string url , int score);
}
-------model和servuce不需要继承behorvier---
3.实现IScoresService接口
创建 C# ScoreService
Public class ScoreService : IScoreService //实现接口
