Skip to content

Instantly share code, notes, and snippets.

View gkngkc's full-sized avatar

Gökhan Gökçe gkngkc

  • Istanbul
View GitHub Profile
Running Prebuild steps
In quiet period, build will start momentarily...
Agent pid 3144
All identities removed.
Removing bvr
Successfully uninstalled bvr-1.8.2
done.
bvr 1.8.2
bvr-api 0.3.5
prebuildstatus finished successfully.
#if UNITY_EDITOR
var mockLoginDialog = GameObject.FindObjectOfType<Facebook.Unity.Editor.Dialogs.MockLoginDialog>();
if (mockLoginDialog != null) {
typeof(Facebook.Unity.Editor.Dialogs.MockLoginDialog).GetField("accessToken", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(mockLoginDialog, "your_access_token");
typeof(Facebook.Unity.Editor.Dialogs.MockLoginDialog).GetMethod("SendSuccessResult", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).Invoke(mockLoginDialog, null);
MonoBehaviour.Destroy(mockLoginDialog);
}
#endif