HeavenStudioPlus/Assets/Scripts/Datamodel.cs
minenice55 dcb2a71b98 start implementation of new format
needs fixes for some types
2022-08-21 19:46:45 -04:00

20 lines
No EOL
438 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HeavenStudio
{
public static class Datamodel
{
public static string Split(this string s, int index)
{
return s.Split('/')[index];
}
public static string GetExtension(this string s)
{
string[] split = s.Split('.');
return split[split.Length - 1];
}
}
}