예제 #1
0
    private void SwitchAllScroll(MonoFrame frame, bool enable)
    {
        var cpns = frame.GetComponentsInChildren <ScrollRect>();

        foreach (var item in cpns)
        {
            item.enabled = enable;
        }
    }
예제 #2
0
    private void ResetAllScroll(MonoFrame frame)
    {
        var cpns = frame.GetComponentsInChildren <ScrollRect>();

        foreach (var item in cpns)
        {
            item.verticalNormalizedPosition = 1;
        }
    }