예제 #1
0
        public static KS.SceneActions.Vector2 ToKSVector2(this Vector2 v)
        {
            var config = new KS.SceneActions.Vector2
            {
                X = v.x,
                Y = v.y,
            };

            return(config);
        }
예제 #2
0
        public static Vector2 ApplyKSVector2(this Vector2 v, KS.SceneActions.Vector2 config)
        {
            if (config.X.HasValue)
            {
                v.x = config.X.Value;
            }
            if (config.Y.HasValue)
            {
                v.y = config.Y.Value;
            }

            return(v);
        }