protected void LoadScene()
 {
     SaveSystem.LoadScene(string.IsNullOrEmpty(spawnpointNameInDestinationScene) ? destinationSceneName : destinationSceneName + "@" + spawnpointNameInDestinationScene);
 }
示例#2
0
 public override string RecordData()
 {
     m_data.position = transform.position;
     m_data.rotation = transform.rotation;
     return(SaveSystem.Serialize(m_data));
 }
示例#3
0
 public override string RecordData()
 {
     return(SaveSystem.Serialize(m_data));
 }
示例#4
0
 public virtual void OnDisable()
 {
     SaveSystem.UnregisterSaver(this);
 }
示例#5
0
 public virtual void OnEnable()
 {
     SaveSystem.RegisterSaver(this);
 }
示例#6
0
 public void UsePortal()
 {
     SaveSystem.LoadScene(string.IsNullOrEmpty(spawnpointNameInDestinationScene) ? destinationSceneName : destinationSceneName + "@" + spawnpointNameInDestinationScene);
 }