예제 #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();
        }