Exemplo n.º 1
0
    internal void ShowKeyCardIndicator(KeyCardType type, bool visible)
    {
        switch (type)
        {
        case KeyCardType.Blue:
            blueKeyCardIndicator.SetActive(visible);
            break;

        case KeyCardType.Green:
            greenKeyCardIndicator.SetActive(visible);
            break;

        case KeyCardType.Yellow:
            yellowKeyCardIndicator.SetActive(visible);
            break;
        }
    }
Exemplo n.º 2
0
    public Color GetMarkColor(KeyCardType key)
    {
        switch (key)
        {
        case KeyCardType.None:
            return(DefaultKeyColor);

        case KeyCardType.WorkerKey:
            return(WorkerKeyColor);

        case KeyCardType.LabKey:
            return(LabKeyColor);

        case KeyCardType.ArmoryKey:
            return(ArmoryKeyColor);

        default:
            return(DefaultKeyColor);
        }
    }
Exemplo n.º 3
0
    public Color GetDoorColor(KeyCardType key)
    {
        switch (key)
        {
        case KeyCardType.None:
            return(DefaultDoorColor);

        case KeyCardType.WorkerKey:
            return(WorkerDoorColor);

        case KeyCardType.LabKey:
            return(LabDoorColor);

        case KeyCardType.ArmoryKey:
            return(ArmoryDoorColor);

        case KeyCardType.Bloked:
            return(BlokedDoorColor);

        default:
            return(DefaultDoorColor);
        }
    }
Exemplo n.º 4
0
 internal bool HasKeyCard(KeyCardType type)
 {
     return(keycards.Contains(type));
 }