mirror of
https://github.com/maxartz15/TextureCombiner.git
synced 2024-09-19 20:55:48 +02:00
30 lines
605 B
C#
30 lines
605 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
namespace TextureCombiner
|
|||
|
{
|
|||
|
public class CombineOptions : Options
|
|||
|
{
|
|||
|
[SerializeField]
|
|||
|
private Toggle autoCombineToggle = null;
|
|||
|
|
|||
|
private void OnEnable()
|
|||
|
{
|
|||
|
autoCombineToggle.isOn = PlayerPrefs.GetInt("autoCombine", 1) != 0;
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnDisable()
|
|||
|
{
|
|||
|
PlayerPrefs.SetInt("autoCombine", autoCombineToggle.isOn ? 1 : 0);
|
|||
|
|
|||
|
base.OnDisable();
|
|||
|
}
|
|||
|
|
|||
|
public bool GetAutoCombine()
|
|||
|
{
|
|||
|
return autoCombineToggle.isOn;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|