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