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)); }
public override string RecordData() { return(SaveSystem.Serialize(m_data)); }
public virtual void OnDisable() { SaveSystem.UnregisterSaver(this); }
public virtual void OnEnable() { SaveSystem.RegisterSaver(this); }
public void UsePortal() { SaveSystem.LoadScene(string.IsNullOrEmpty(spawnpointNameInDestinationScene) ? destinationSceneName : destinationSceneName + "@" + spawnpointNameInDestinationScene); }