Last active
September 21, 2022 08:31
-
-
Save kudo004/9dccdfbd21f813b5192a8bb4f94233d8 to your computer and use it in GitHub Desktop.
2つの色を切り替える
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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