protected override void OnDestroy()
        {
            KnetikGlobalEventSystem.Unsubscribe <KnetikCloudUserAuthenticateRequestEvent>(OnUserAuthenticateRequest);
            KnetikGlobalEventSystem.Unsubscribe <KnetikCloudClientAuthenticateRequestEvent>(OnClientAuthenticateRequest);
            KnetikGlobalEventSystem.Unsubscribe <KnetikCloudTokenAuthenticateRequestEvent>(OnTokenAuthenticateRequest);

            mAccessTokenApi  = null;
            mProjectSettings = null;

            base.OnDestroy();
        }
        protected override void Awake()
        {
            // Load project settings
            mProjectSettings = KnetikCloudProjectSettings.Load();
            if (mProjectSettings == null)
            {
                KnetikLogger.LogError("Unable to load project settings - please set them up in the editor window!");
                return;
            }

            if (!mProjectSettings.IsConfiguredProperly)
            {
                KnetikLogger.LogError("The project settings are not setup correctly - please set them in the editor window!");
                return;
            }

            KnetikGlobalEventSystem.Subscribe <KnetikCloudUserAuthenticateRequestEvent>(OnUserAuthenticateRequest);
            KnetikGlobalEventSystem.Subscribe <KnetikCloudClientAuthenticateRequestEvent>(OnClientAuthenticateRequest);
            KnetikGlobalEventSystem.Subscribe <KnetikCloudTokenAuthenticateRequestEvent>(OnTokenAuthenticateRequest);

            base.Awake();
        }