public void LogAction(string s) { ActionLog actionLog = actionLogPool.Get().GetComponent <ActionLog>(); actionLog.transform.SetParent(transform); actionLog.transform.SetSiblingIndex(actionLog.transform.parent.childCount - 1); actionLog.SetLabel(s); }