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); }
public void Init() { loaderUI = GameObject.Find("loader"); ShowLoaderUI(); ElephantCore.onInitialized += OnInitialized; ElephantCore.onOpen += OnOpen; ElephantCore.onRemoteConfigLoaded += OnRemoteConfigLoaded; bool isOldUser = false; Elephant.Init(isOldUser, true); }
void Awake() { if (Instance == null) { Instance = this; } else if (Instance != null && Instance != this) { Destroy(gameObject); return; } DontDestroyOnLoad(gameObject); Elephant.Init(); }