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();
            }
        }
 // Facebook
 public void SendFacebookEvent(string eventName, string contentId = "", string description = "", string level = "")
 {
     if (HCConstants.enableFacebook)
     {
         HCFacebookController.Instance().sendAnalytics(eventName, contentId, description, level);
     }
 }
Esempio n. 3
0
 public static HCFacebookController Instance()
 {
     if (instance == null)
     {
         GameObject gObject = new GameObject("HCPlugin");
         instance = gObject.AddComponent <HCFacebookController>();
         DontDestroyOnLoad(gObject);
     }
     return(instance);
 }
        public void SetUpdateLabel(Action <string> callback)
        {
            updateCallback = callback;
            if (HCConstants.enableFacebook)
            {
                HCFacebookController.Instance().SetUpdateLabel(updateCallback);
            }

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