Пример #1
0
    public void showCamera(int in_color)
    {
        PawnColor col = (PawnColor)in_color;

        GetComponent <UIManager>().ShowCameraSelection(0);
        switch (col)
        {
        case PawnColor.c_Blue:
            BlueCamera.SetActive(true);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_Green:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(true);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_Red:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(true);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_Yellow:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(true);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_null:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(true);
            break;
        }
    }
Пример #2
0
    public void showCamera(int in_color)
    {
        PawnColor col = (PawnColor)in_color;

        switch (col)
        {
        case PawnColor.c_Blue:
            BlueCamera.SetActive(true);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_Green:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(true);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_Red:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(true);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_Yellow:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(true);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(false);
            break;

        case PawnColor.c_null:
            BlueCamera.SetActive(false);
            YellowCamera.SetActive(false);
            RedCamera.SetActive(false);
            GreenCamera.SetActive(false);
            TopDownCamera.SetActive(true);
            break;
        }
    }