Assets.Scripts.Utils.TransformEx.SetRotation C# (CSharp) Метод

SetRotation() публичный статический Метод

public static SetRotation ( this transform, float angle ) : void
transform this
angle float
Результат void
        public static void SetRotation(this Transform transform, float angle)
        {
            transform.rotation = new Quaternion();
            transform.Rotate(Vector3.forward, angle);
        }