void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        UnityPlayer =
            new AndroidJavaClass("com.unity3d.player.UnityPlayer");

        currentActivity = UnityPlayer
                          .GetStatic <AndroidJavaObject>("currentActivity");


        context = currentActivity
                  .Call <AndroidJavaObject>("getApplicationContext");

        DontDestroyOnLoad(this.gameObject);
    }