public Material GetBlocColorMaterial(BlocColor color) { switch (color) { case (BlocColor.Blue): return(MaterialBlue); case (BlocColor.Purple): return(MaterialPurple); case (BlocColor.Pink): return(MaterialPink); case (BlocColor.Green): return(MaterialGreen); case (BlocColor.Yellow): return(MaterialYellow); case (BlocColor.Red): return(MaterialRed); default: return(null); } }
public Color GetBlocColorColorValue(BlocColor color) { switch (color) { case (BlocColor.Blue): return(ColorBlue); case (BlocColor.Purple): return(ColorPurple); case (BlocColor.Pink): return(ColorPink); case (BlocColor.Green): return(ColorGreen); case (BlocColor.Yellow): return(ColorYellow); case (BlocColor.Red): return(ColorRed); default: return(Color.black); } }
public void SetColorImage(int id, BlocColor color) { if (id < 0 || id >= _weaponRenderers.Count) { Debug.LogError(id + " out of range for this UI with only " + _weaponRenderers.Count + "color"); return; } _weaponRenderers[id].material = GameManager.Instance.GameData.GetBlocColorMaterial(color); }
public BlocSpriteDescription(BlocColor color, UnityEngine.Sprite sprite) { this.Color = color; this.Sprite = sprite; }
public void OnBlocDestroyed(object obj) { LastDestroyedColor = (BlocColor)obj; UpdateScore(); SetComboCount(ComboCount + 1); }