2022-01-08 16:42:48 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2022-03-14 14:21:05 +00:00
|
|
|
namespace HeavenStudio
|
2022-01-08 16:42:48 +00:00
|
|
|
{
|
|
|
|
public static class Datamodel
|
|
|
|
{
|
|
|
|
public static string Split(this string s, int index)
|
|
|
|
{
|
|
|
|
return s.Split('/')[index];
|
|
|
|
}
|
2022-08-21 23:46:45 +00:00
|
|
|
|
|
|
|
public static string GetExtension(this string s)
|
|
|
|
{
|
|
|
|
string[] split = s.Split('.');
|
|
|
|
return split[split.Length - 1];
|
|
|
|
}
|
2022-01-08 16:42:48 +00:00
|
|
|
}
|
|
|
|
}
|