1234567891011121314151617181920 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ToolScript
- {
- // Start is called before the first frame update
-
- public Vector3 StrSubstringToV3(string str)
- {
- if (str == null)
- {
- return new Vector3();
- }
- string[] s = str.Split('_');
- return new Vector3(float.Parse(s[0]), float.Parse(s[1]), float.Parse(s[2]));
- }
- }
|