Skip to content

Instantly share code, notes, and snippets.

@kudo004
Last active September 21, 2022 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kudo004/9dccdfbd21f813b5192a8bb4f94233d8 to your computer and use it in GitHub Desktop.
Save kudo004/9dccdfbd21f813b5192a8bb4f94233d8 to your computer and use it in GitHub Desktop.
2つの色を切り替える
using UnityEngine;
using UnityEngine.UI;
namespace KDLib
{
/// <summary>
/// 2つの色を切り替える
/// </summary>
public class SwitchColor : SwitchValue<Color>
{
[SerializeField] private Graphic _target;
protected override void OnChangeValue(Color value)
{
_target.color = value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment