Beispiel #1
0
    public override void Execute(INotification notification)
    {
        GrounpEditProxy editGrounpProxy = (GrounpEditProxy)EditGameFade.GetInstance().RetrieveProxy(GrounpEditProxy.NAME);

        Dictionary <string, string> dic = notification.Body as Dictionary <string, string>;
        string createName = dic["createName"].ToString();
        string playerTime = dic["playerTime"].ToString();

        editGrounpProxy.AddGrounp(createName, playerTime);
    }
    public override void Execute(INotification notification)
    {
        Dictionary <string, object> dic = notification.Body as Dictionary <string, object>;
        string          grounpName      = dic["grounpName"].ToString();
        string          checkCode       = dic["checkCode"].ToString();
        string          grounpId        = dic["grounpId"].ToString();
        string          playerTime      = dic["playerTime"].ToString();
        GrounpEditProxy editGrounpProxy = (GrounpEditProxy)EditGameFade.GetInstance().RetrieveProxy(GrounpEditProxy.NAME);

        editGrounpProxy.EditGrounp(grounpId, grounpName, checkCode, playerTime);
    }
Beispiel #3
0
    public override void Execute(INotification notification)
    {
        int    Usertype = LoginInfo.Userinfo.type;
        string keyName  = notification.Body.ToString();

        GrounpSearchProxy grounpProxy = null;

        if (Usertype == 0)
        {
            grounpProxy = (GrounpSearchProxy)EditGameFade.GetInstance().RetrieveProxy(GrounpSearchProxy.NAME);
        }
        else
        {
            grounpProxy = (GrounpSearchProxy)JoinRoomFade.GetInstance().RetrieveProxy(GrounpSearchProxy.NAME);
        }

        if (string.IsNullOrEmpty("keyName"))
        {
            keyName = "-1";
        }
        grounpProxy.SearchAllGrounp(keyName);
    }
Beispiel #4
0
    public override void Execute(INotification notification)
    {
        GrounpSearchProxy grounpProxy = (GrounpSearchProxy)EditGameFade.GetInstance().RetrieveProxy(GrounpSearchProxy.NAME);

        grounpProxy.SearchSingleGrounp(notification.Body.ToString());
    }
 private void OnDestroy()
 {
     EditGameFade.GetInstance().DestroyEvent();
 }
 void Start()
 {
     EditGameFade.GetInstance().StartUp(gameObject);
 }