예제 #1
0
        private void Draw(string label, ref Vector2 value)
        {
            UnityGUI.BeginChangeCheck();
            value = UnityGUI.Vector2(label, value);
            var changed = UnityGUI.EndChangeCheck();

            if (changed)
            {
                UpdateValues(label);
            }
        }