using System.Collections; using System.Collections.Generic; using UnityEngine; public static class Extensions { /// /// Returns vector with specified y. /// /// The y. /// Input vector. /// The y coordinate. public static Vector3 WithY(this Vector3 a, float y) { return new Vector3 (a.x, y, a.z); } }