Any help is always greatly appreciated
(25,17)A return keyword must not be followed by any expression when method returns void
(25,17)Cannot implicitly convert type UnityEngine.Color' to void’
public Texture graphic;
public Color GUIColor;
void OnGUI() {
GUI.color = GUIColor;
if (graphic) {
GUI.DrawTexture(new Rect(10,10,
Screen.width,Screen.height),
graphic,ScaleMode.StretchToFill,true);
}
}
public void AlphaUp(float change) {
if (GUIColor.a < 1) {
GUIColor.a += change;
}
}
public void setStartColor(Color color) {
GUIColor = color;
}
public void getColor() {
return GUIColor;
}
public void setDelay(float delay) {
if (GUIColor.a > .5) {
GUIColor.a += delay;
} else {
GUIColor.a -= delay;
}
}
public void AlphaDown(float change) {
if (GUIColor.a > 0) {
GUIColor.a -= change;
}
}