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); } }