public SpriteRenderer xiaobei;
private Color cc;
public float Aaa=0.1f;
//float jianbian = 0.1f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
cc = Color.HSVToRGB(Aaa, 0.9f, 0.9f);
xiaobei.color = cc;
Aaa += 0.001f;
if (Aaa > 0.9f)
{
Aaa = 0.1f;
}
else if (Input.GetKeyDown(KeyCode.Space)) {
Aaa = 0.5f;
}