少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
public static class ColorUtility {
 
    public static readonly Color dwhite = new Color(1f,1f,1f,1f);
    public static readonly Color dgray = new Color(0.5f,0.5f,0.5f,1f);
 
    public static Color SetR(this Color color,float r) {
        color.r = r;
        return color;
    }
 
    public static Color SetG(this Color color,float g) {
        color.g = g;
        return color;
    }
 
    public static Color SetB(this Color color,float b) {
        color.b = b;
        return color;
    }
 
    public static Color SetA(this Color color,float a) {
        color.a = a;
        return color;
    }
 
}