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