Exemple #1
0
    void makeMail(string mailId)
    {
        GameObject mailObject;

        if (mailPool.TryGetNextObject(Vector3.zero, Quaternion.identity, out mailObject))
        {
            MailController mailController = mailObject.GetComponent <MailController>();
            mailController.Init(mailDb.getMailByID(mailId));
            usedMails.Add(mailController);
        }
    }