:(
This commit is contained in:
parent
f522a1a398
commit
fa0ab3dff8
|
@ -95,6 +95,7 @@ namespace HeavenStudio.Properties
|
||||||
if (json != "")
|
if (json != "")
|
||||||
{
|
{
|
||||||
properties = JsonConvert.DeserializeObject<Properties>(json);
|
properties = JsonConvert.DeserializeObject<Properties>(json);
|
||||||
|
RemixName.instance.Refresh(Properties.instance.levelName);
|
||||||
Debug.Log("levelName = " + (properties.levelName));
|
Debug.Log("levelName = " + (properties.levelName));
|
||||||
Debug.Log("levelCreator = " + (properties.levelCreator));
|
Debug.Log("levelCreator = " + (properties.levelCreator));
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,15 @@ namespace HeavenStudio.Properties
|
||||||
{
|
{
|
||||||
public class RemixName : MonoBehaviour
|
public class RemixName : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public static RemixName instance { get; private set; } = new RemixName();
|
||||||
|
|
||||||
[SerializeField] private GameObject content;
|
[SerializeField] private GameObject content;
|
||||||
|
|
||||||
public void Refresh(string content)
|
public void Refresh(string content)
|
||||||
{
|
{
|
||||||
Properties.instance.levelName = content;
|
Properties.instance.levelName = content;
|
||||||
Debug.Log(Properties.instance.levelName);
|
Debug.Log(Properties.instance.levelName);
|
||||||
|
content = Properties.instance.levelName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue