Exemplo n.º 1
0
        private void Initialize()
        {
            if (HCConstants.enableGameAnalytics)
            {
                HCGameAnalytics.Instance();
            }

            if (HCConstants.enableFacebook)
            {
                HCFacebookController.Instance();
            }

            if (HCConstants.enableAdmob)
            {
                HCAdmobController.Instance();
            }

            if (HCConstants.enableAdjust)
            {
                HCAdjustController.Instance();
            }

            if (HCConstants.enableAppsflyer)
            {
                HCAppFlyerController.Instance();
            }
        }
Exemplo n.º 2
0
 // Facebook
 public void SendFacebookEvent(string eventName, string contentId = "", string description = "", string level = "")
 {
     if (HCConstants.enableFacebook)
     {
         HCFacebookController.Instance().sendAnalytics(eventName, contentId, description, level);
     }
 }
Exemplo n.º 3
0
 public static HCFacebookController Instance()
 {
     if (instance == null)
     {
         GameObject gObject = new GameObject("HCPlugin");
         instance = gObject.AddComponent <HCFacebookController>();
         DontDestroyOnLoad(gObject);
     }
     return(instance);
 }
Exemplo n.º 4
0
        public void SetUpdateLabel(Action <string> callback)
        {
            updateCallback = callback;
            if (HCConstants.enableFacebook)
            {
                HCFacebookController.Instance().SetUpdateLabel(updateCallback);
            }

            if (HCConstants.enableAdmob)
            {
                HCAdmobController.Instance().SetUpdateLabel(updateCallback);
            }
        }