void StateAndColorSetter(BALL_STATE bState) { //ボールの色と状態を代入する ballState = bState; //spRenderer.color = ballColor[(int)bState]; spRenderer.color = CustomColorTheme.GetColors()[(int)bState]; }
public static void Play(eEffectType type, Vector3 pos, int colorIndex) { // 強引に... GameObject obj; if (type == eEffectType.Bubble) { obj = poolBubble.GetInstance(); } else { obj = poolBurst.GetInstance(); } if (obj == null) { return; } ParticleSystem eff = obj.GetComponent <ParticleSystem>(); eff.transform.position = pos; eff.startColor = CustomColorTheme.GetColors()[colorIndex]; eff.Play(); }
private void Start() { // 色を変更 SetColors(CustomColorTheme.GetColors()); // 色変更の登録 CustomColorTheme.RegisterMethod(SetColors); }
public void UpdateColorUi() { theme = CustomColorTheme.GetColors(); redIm.color = theme.BallColorRed; blueIm.color = theme.BallColorBlue; greenIm.color = theme.BallColorGreen; fieldIm.color = theme.FieldColor + new Color(1.0f, 1.0f, 1.0f) * 0.2f; colorText.color = theme.TextColor; colorText.text = theme.ThemeName; leftText.color = theme.TextColor; scoreText.color = theme.TextColor; scoreBackBoard.color = theme.WallColor - new Color(0f, 0f, 0f, 0.2f); //scoreBackBoard.color = new Color(1.0f, 1.0f, 1.0f, 1.8f) - theme.TextColor; unlockedText.color = theme.TextColor; bow.color = theme.BallColorBlue; leftTargetScore.color = theme.TextColor; rightTargetScore.color = theme.TextColor; Color tmp = theme.BallColorBlue; tmp.a = 0.25f; backBow.color = tmp; }
// 色を変更 public void Play(Ball.BALL_STATE state) { eff.startColor = CustomColorTheme.GetColors()[(int)state]; eff.Play(); }
// Start is called before the first frame update void Start() { titleFrame.color = CustomColorTheme.GetColors().FieldColor + new Color(1.0f, 1.0f, 1.0f) * 0.2f; }