Пример #1
0
        void Start()
        {
            // listen Elephant SDK lifecycle events..
            ElephantCore.onInitialized        += OnInitialized;
            ElephantCore.onOpen               += OnOpen;
            ElephantCore.onRemoteConfigLoaded += OnRemoteConfigLoaded;

            // detect is this user new to the Elephant SDK
            bool isOldUser = false;


            // initialize Elephant SDK
            Elephant.Init(isOldUser);
        }
Пример #2
0
        public void Init()
        {
            loaderUI = GameObject.Find("loader");

            ShowLoaderUI();

            ElephantCore.onInitialized        += OnInitialized;
            ElephantCore.onOpen               += OnOpen;
            ElephantCore.onRemoteConfigLoaded += OnRemoteConfigLoaded;

            bool isOldUser = false;

            Elephant.Init(isOldUser, true);
        }
Пример #3
0
        void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else if (Instance != null && Instance != this)
            {
                Destroy(gameObject);
                return;
            }

            DontDestroyOnLoad(gameObject);
            Elephant.Init();
        }