Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Vector3 stringToVec(string s) {
- string[] temp = s.Substring (1, s.Length-2).Split (',');
- return new Vector3 (float.Parse(temp[0]), float.Parse(temp[1]), float.Parse(temp[2]));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement