| //-------------------------------------------------------- | 
| //    [Author]:           第二世界 | 
| //    [  Date ]:           Friday, July 28, 2017 | 
| //-------------------------------------------------------- | 
| using UnityEngine; | 
| using System.Collections; | 
| using System; | 
|   | 
| namespace vnxbqy.UI { | 
|     public class TestModel:Model { | 
|   | 
|         public event Action<int> test1ResultEvent; | 
|         public event Action<int> test2ResultEvent; | 
|   | 
|         public override void Init() { | 
|             throw new System.NotImplementedException(); | 
|         } | 
|   | 
|         public override void UnInit() { | 
|             throw new System.NotImplementedException(); | 
|         } | 
|   | 
|         public void Test1() { | 
|   | 
|             OnTest1CallBack(); | 
|         } | 
|   | 
|         private void OnTest1CallBack() { | 
|             if(test1ResultEvent != null) { | 
|                 test1ResultEvent(UnityEngine.Random.Range(0,10)); | 
|             } | 
|         } | 
|   | 
|   | 
|         public void Test2(int _heroId,int _heroLevel) { | 
|   | 
|             OnTest2CallBack(); | 
|         } | 
|   | 
|         private void OnTest2CallBack() { | 
|             if(test2ResultEvent != null) { | 
|                 test2ResultEvent(UnityEngine.Random.Range(0,10)); | 
|             } | 
|         } | 
|   | 
|     } | 
|   | 
| } |