示例#1
0
    void Awake()
    {
        scrollRect = messageContainer.GetComponentInParent <ScrollRect>();
        if (scrollRect)
        {
            detector = scrollRect.GetComponent <ScrollRectDetector>();
        }

        messagePrefab.gameObject.SetActive(false);
        needsToWaitAFrame = messagePrefab.GetComponent <ScreenMessage>().NeedsAFrame;
    }