blob: 5afe94195fbaf5bc091f3de7ff3e29bc45507328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEditor;
using UnityEngine;
public static class Vector3Extension
{
public static Vector2 xy(this Vector3 src)
{
Vector2 xy = new Vector2();
xy.x = src.x;
xy.y = src.y;
return xy;
}
public static Vector2 ToVector2(this Vector3 src)
{
Vector2 xy = new Vector2();
xy.x = src.x;
xy.y = src.y;
return xy;
}
}
|