示例#1
0
    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);
        }
    }
示例#2
0
    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);
        }
    }
示例#3
0
    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);
    }
示例#4
0
 public BlocSpriteDescription(BlocColor color, UnityEngine.Sprite sprite)
 {
     this.Color = color;
     this.Sprite = sprite;
 }
示例#5
0
 public void OnBlocDestroyed(object obj)
 {
     LastDestroyedColor = (BlocColor)obj;
     UpdateScore();
     SetComboCount(ComboCount + 1);
 }