Beispiel #1
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else if (instance != this)
        {
            Destroy(this.gameObject);
            return;
        }

        GG_API = gameObject.AddComponent <GamerGraph_Plugin.GamerGraphAPI>();
        GG_API = GetComponentInParent <GamerGraph_Plugin.GamerGraphAPI>();

        if (GG_Profile.gameKey.Equals("") || GG_Profile.gameKey.Equals(null))
        {
            Debug.LogError("No game key found!");
        }
        else
        {
            GG_API._GG_Ids.gameKey = GG_Profile.gameKey;
        }

        if (GG_Profile.publisherKey.Equals("") || GG_Profile.publisherKey.Equals(null))
        {
            Debug.LogError("No publisher key found!");
        }
        else
        {
            GG_API._GG_Ids.publisherKey = GG_Profile.publisherKey;
        }
    }
 private void Awake()
 {
     _GamerGraphAPI = FindObjectOfType <GamerGraphCore>();
     if (_GamerGraphAPI == null)
     {
         Debug.Log("Unable to find gamergraph api");
     }
 }
Beispiel #3
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else if (instance != this)
        {
            Destroy(this.gameObject);
            return;
        }

        _GG_API = FindObjectOfType <GamerGraphCore>();
    }
 private void Awake()
 {
     _GamergraphAPI     = FindObjectOfType <GamerGraphCore>();
     _UpdateInputFields = FindObjectOfType <GG_PlayerProfileUpdate_InputFields>();
 }
Beispiel #5
0
 private void Awake()
 {
     _AIFs          = FindObjectOfType <GG_Login_Signup_InputFields>();
     _GamerGraphAPI = FindObjectOfType <GamerGraphCore>();
 }
Beispiel #6
0
 private void Awake()
 {
     _GamergraphAPI      = FindObjectOfType <GamerGraphCore>();
     _RequiredAttributes = FindObjectOfType <GG_RequiredAttributesForSendingGameInvites>();
 }