mirror of
https://github.com/maxartz15/TextureCombiner.git
synced 2024-11-09 23:22:55 +01:00
1165a4e4a8
P4 -> GitHub sync.
23 lines
443 B
C#
23 lines
443 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace TextureCombiner
|
|
{
|
|
[RequireComponent(typeof(Toggle))]
|
|
public class ToggleInvoke : MonoBehaviour
|
|
{
|
|
private Toggle m_toggle = null;
|
|
|
|
private void Awake()
|
|
{
|
|
m_toggle = GetComponent<Toggle>();
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
m_toggle.onValueChanged.Invoke(m_toggle.isOn);
|
|
}
|
|
}
|
|
} |