public void DispatchEvent(object sender ,GameBaseEvent a_baseEvent)
 {
     if(isAlReadyEventExists(a_baseEvent.EventType))
     {
         DelegateWarapper l_delegateWrapper = (DelegateWarapper)m_eventTable[a_baseEvent.EventType];
         //event DelegateWarapper.GameEventHandler RaiseCustomEvent = l_delegateWrapper.RaiseCustomEvent;
         l_delegateWrapper.DispatchEvent(sender, a_baseEvent.Args);
     }
    
 }
    private void OnResponseGetAssetsInfo(ISFSObject a_infoData)
    {
        //assetsinfo
        if(a_infoData.GetBool(Keys.SUCCESS))
        {
            ISFSArray l_tempSfsArray = a_infoData.GetSFSArray(Keys.ASSETS_INFO);
            List<AssetsInfo> l_allCurrentInfoList = new List<AssetsInfo>();
            for (int indexAssetInfo = 0; indexAssetInfo < l_tempSfsArray.Count; indexAssetInfo++)
            {
                AssetsInfo l_temp = new AssetsInfo();
                l_temp.AssetID = (int)(l_tempSfsArray.GetSFSObject(indexAssetInfo)).GetLong("assetsid");
                l_temp.ImageTargetID = (l_tempSfsArray.GetSFSObject(indexAssetInfo)).GetUtfString("imagetargetid");
                l_temp.URL = (l_tempSfsArray.GetSFSObject(indexAssetInfo)).GetUtfString("assetsurl");
                l_temp.AssetName = (l_tempSfsArray.GetSFSObject(indexAssetInfo)).GetUtfString("assetname");
                l_allCurrentInfoList.Add(l_temp);

            }
            GameBaseEvent l_assetsInfoEvent = new GameBaseEvent(eGameEvents.getAssetsInfo.ToString());
            GameEventArgs l_eventArg = new GameEventArgs();
            l_eventArg.EventData  = (object)l_allCurrentInfoList;
            l_assetsInfoEvent.Args = l_eventArg;
            dispatchEvent(this, l_assetsInfoEvent);
        }
        else
        {
            Debug.Log(a_infoData.GetUtfString(Keys.ERROR));
        }
    }
 private void OnConnection(BaseEvent evt)
 {
     if ((bool)evt.Params["success"])
     {
         RegisterLoginEvent();
         sfs.AddEventListener(SFSEvent.EXTENSION_RESPONSE, onExtensionResponse);
         GameBaseEvent l_gameEvent = new GameBaseEvent(eGameEvents.ConnectionSuccess.ToString());
         GameEventArgs args = new GameEventArgs();
         this.dispatchEvent(this, l_gameEvent);
     }
     else
     {
         reset();
     }
 }
 public void dispatchEvent(object sender, GameBaseEvent a_baseEvent)
 {
     m_eventManager.DispatchEvent(sender, a_baseEvent);
 }
 private void OnLogin(BaseEvent evt)
 {
     Debug.Log("OnLoginOnLoginOnLoginOnLogin ::: ");
     UnRegisterLoginEvent(); 
     GameBaseEvent l_loginEvent = new GameBaseEvent(eGameEvents.UserLogin.ToString());
     GameEventArgs l_loginargs = new GameEventArgs();
     l_loginargs.EventData = evt;
     l_loginEvent.Args = l_loginargs;
     dispatchEvent(this, l_loginEvent);
    
    
 }
        private void OnTrackingFound()
        {
            Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true);
            Collider[] colliderComponents = GetComponentsInChildren<Collider>(true);

            // Enable rendering:
            foreach (Renderer component in rendererComponents)
            {
                component.enabled = true;
            }

            // Enable colliders:
            foreach (Collider component in colliderComponents)
            {
                component.enabled = true;
            }

            Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
            TreasureHunt.ImageTarget l_tempImageTarget = transform.gameObject.GetComponent<TreasureHunt.ImageTarget>();
            GameBaseEvent l_traceEvent = new GameBaseEvent(TrackableEvent.OnTrackingFound.ToString());
            GameEventArgs l_arg = new GameEventArgs();
            l_arg.EventData = l_tempImageTarget.ImageTargetID;
            l_traceEvent.Args = l_arg;
            dispatchEvent(this, l_traceEvent);
        }