mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-24 02:25:18 +00:00
f209b2fd17
needs fixes for some types
20 lines
No EOL
438 B
C#
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];
|
|
}
|
|
}
|
|
} |