mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
update SystemsLayerMarkerSystem
This commit is contained in:
parent
91091d22e4
commit
b604c9f079
@ -259,7 +259,23 @@ namespace DCFApixels.DragonECS
|
|||||||
public class SystemsLayerMarkerSystem : IEcsProcess
|
public class SystemsLayerMarkerSystem : IEcsProcess
|
||||||
{
|
{
|
||||||
public readonly string name;
|
public readonly string name;
|
||||||
public SystemsLayerMarkerSystem(string name) { this.name = name; }
|
public readonly string layerNameSpace;
|
||||||
|
public readonly string layerName;
|
||||||
|
public SystemsLayerMarkerSystem(string name)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
int indexof = name.LastIndexOf('.');
|
||||||
|
if(indexof > 0)
|
||||||
|
{
|
||||||
|
layerNameSpace = name.Substring(0, indexof + 1);
|
||||||
|
layerName = name.Substring(indexof + 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
layerNameSpace = string.Empty;
|
||||||
|
layerName = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
public override string ToString() { return name; }
|
public override string ToString() { return name; }
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user