Exemple #1
0
    public void deselect(ObjectSelection.Model objectSelectionModel)
    {
        switch (objectSelectionModel)
        {
        case ObjectSelection.Model.InfoDisplay:
            actualColor = defaultColor;
            obj.GetComponent <SpriteRenderer>().color = actualColor;
            break;

        default:
            obj.GetComponent <SpriteRenderer>().color = actualColor;
            break;
        }
    }
Exemple #2
0
    public void select(ObjectSelection.Model objectSelectionModel)
    {
        switch (objectSelectionModel)
        {
        case ObjectSelection.Model.ColonyTarget:
            obj.GetComponent <SpriteRenderer>().color = new Color(0.15f, 0.96f, 0.17f, 1);
            break;

        case ObjectSelection.Model.BoosterApplication:
            obj.GetComponent <SpriteRenderer>().color = new Color(0.79f, 0.24f, 1f, 1);
            break;

        case ObjectSelection.Model.InfoDisplay:
            actualColor = new Color(1, 0, 0, 1);
            obj.GetComponent <SpriteRenderer>().color = actualColor;
            break;
        }
    }