void Awake() { if (AdjustPurchase.instance != null) { return; } DontDestroyOnLoad(transform.gameObject); if (!this.startManually) { ADJPConfig config = new ADJPConfig(this.appToken, this.environment); config.SetLogLevel(this.logLevel); AdjustPurchase.Init(config); } }
public void GetNativeVerificationInfo(string stringVerificationInfo) { if (AdjustPurchase.instance == null) { Debug.Log(AdjustPurchase.errorMessage); return; } if (AdjustPurchase.verificationInfoCallback == null) { Debug.Log("adjust purchase: Attribution changed delegate was not set."); return; } ADJPVerificationInfo verificationInfo = new ADJPVerificationInfo(stringVerificationInfo); AdjustPurchase.verificationInfoCallback(verificationInfo); }