rise-and-swine/Assets/Scripts/Assembly-CSharp/CompactEpisodeTarget.cs
2023-02-25 23:04:03 -05:00

25 lines
522 B
C#

using UnityEngine;
public class CompactEpisodeTarget : Widget
{
protected override void OnActivate()
{
if (this.episodeSelector != null)
{
this.episodeSelector.MoveToTargetIndex(this.elementIndex, this.isSandboxSelection);
}
}
public void SetAsLastTarget()
{
UserSettings.SetInt(CompactEpisodeSelector.CurrentSandboxEpisodeKey, this.elementIndex);
}
[SerializeField]
private int elementIndex;
[SerializeField]
private bool isSandboxSelection;
public CompactEpisodeSelector episodeSelector;
}