Пример #1
0
 void OnBindPlayer(EventMgr.EventData ed)
 {
     player = ed.data as Player;
 }
Пример #2
0
    void OnUnzipEvent(EventMgr.EventData eb)
    {
        UnzipEventValue v = eb.data as UnzipEventValue;

        OnUnzipProgress(v.progress, v.code);
    }
Пример #3
0
 void OnBindPlayer(EventMgr.EventData ed)
 {
     hero            = ed.data as Player;
     camCtrl         = Camera.main.GetComponent <CameraController>();
     camCtrl.mTarget = hero.transform;
 }
Пример #4
0
 void onPlayer(EventMgr.EventData ed)
 {
     mPlayer = ed.data as Player;
 }