Ejemplo n.º 1
0
    private static void SendEmailMessage(string gameObjName, string senderEmail, string message)
    {
        Debug.Log("SendEmailMessage() is not supported in Editor.\n" +
                  "senderEmail: " + senderEmail + ", message: " + message);

        GameObject gameObject = GameObject.Find(gameObjName);

        if (gameObject)
        {
            ContactPage contact = gameObject.GetComponent <ContactPage>();
            if (contact)
            {
                //contact.Invoke("TestMessageFailure", 2);
                contact.Invoke("OnSendEmailMessageSuccess", 2);
            }
        }
    }