public void SetUpPlayer(int playerNumber, CharacterEnum charEnum)
    {
        if (playerNumber < 1 || playerNumber > 4)
        {
            return;
        }
        switch (playerNumber)
        {
        case 1:
            player1Info.playerNumber = 1;
            player1Info.charEnum     = charEnum;
            player1Info.playerColor  = "red";
            player1Info.lifes        = gameInfo.lifes;
            switch (gameInfo.player1type)
            {
            case PlayerTypeEnum.None:
                player1Active = false;
                break;

            default:
                ControlKeys ck = new ControlKeysP1();
                ck.keyFire = KeyCode.None;
                player1Comp.SetUpPlayer(player1Info, ck);
                player1Active = true;
                break;
            }
            break;

        case 2:
            player2Info.playerNumber = 2;
            player2Info.charEnum     = charEnum;
            player2Info.playerColor  = "green";
            player2Info.lifes        = gameInfo.lifes;
            switch (gameInfo.player2type)
            {
            case PlayerTypeEnum.None:
                player2Active = false;
                break;

            default:
                ControlKeys ck = new ControlKeysP2();
                ck.keyFire = KeyCode.None;
                player2Comp.SetUpPlayer(player2Info, ck);
                player2Active = true;
                break;
            }
            break;

        case 3:
            player3Info.playerNumber = 3;
            player3Info.charEnum     = charEnum;
            player3Info.playerColor  = "blue";
            player3Info.lifes        = gameInfo.lifes;
            switch (gameInfo.player3type)
            {
            case PlayerTypeEnum.None:
                player3Active = false;
                break;

            default:
                ControlKeys ck = new ControlKeysP3();
                ck.keyFire = KeyCode.None;
                player3Comp.SetUpPlayer(player3Info, ck);
                player3Active = true;
                break;
            }
            break;

        case 4:
            player4Info.playerNumber = 4;
            player4Info.charEnum     = charEnum;
            player4Info.playerColor  = "yellow";
            player4Info.lifes        = gameInfo.lifes;
            switch (gameInfo.player4type)
            {
            case PlayerTypeEnum.None:
                player4Active = false;
                break;

            default:
                ControlKeys ck = new ControlKeysP4();
                ck.keyFire = KeyCode.None;
                player4Comp.SetUpPlayer(player4Info, ck);
                player4Active = true;
                break;
            }
            break;
        }
    }
    public void SetUpPlayer(int playerNumber, CharacterEnum charEnum)
    {
        if (playerNumber < 1 || playerNumber > 4) return;
        switch (playerNumber)
        {
            case 1:
                player1Info.playerNumber = 1;
                player1Info.charEnum = charEnum;
                player1Info.playerColor = "red";
                player1Info.lifes = gameInfo.lifes;
                switch (gameInfo.player1type)
                {
                    case PlayerTypeEnum.None:
                        player1Active = false;
                        break;
                    default:
                        ControlKeys ck = new ControlKeysP1();
                        ck.keyFire = KeyCode.None;
                        player1Comp.SetUpPlayer(player1Info, ck);
                        player1Active = true;
                        break;

                }
                break;
            case 2:
                player2Info.playerNumber = 2;
                player2Info.charEnum = charEnum;
                player2Info.playerColor = "green";
                player2Info.lifes = gameInfo.lifes;
                switch (gameInfo.player2type)
                {
                    case PlayerTypeEnum.None:
                        player2Active = false;
                        break;
                    default:
                        ControlKeys ck = new ControlKeysP2();
                        ck.keyFire = KeyCode.None;
                        player2Comp.SetUpPlayer(player2Info, ck);
                        player2Active = true;
                        break;

                }
                break;
            case 3:
                player3Info.playerNumber = 3;
                player3Info.charEnum = charEnum;
                player3Info.playerColor = "blue";
                player3Info.lifes = gameInfo.lifes;
                switch (gameInfo.player3type)
                {
                    case PlayerTypeEnum.None:
                        player3Active = false;
                        break;
                    default:
                        ControlKeys ck = new ControlKeysP3();
                        ck.keyFire = KeyCode.None;
                        player3Comp.SetUpPlayer(player3Info, ck);
                        player3Active = true;
                        break;

                }
                break;
            case 4:
                player4Info.playerNumber = 4;
                player4Info.charEnum = charEnum;
                player4Info.playerColor = "yellow";
                player4Info.lifes = gameInfo.lifes;
                switch (gameInfo.player4type)
                {
                    case PlayerTypeEnum.None:
                        player4Active = false;
                        break;
                    default:
                        ControlKeys ck = new ControlKeysP4();
                        ck.keyFire = KeyCode.None;
                        player4Comp.SetUpPlayer(player4Info, ck);
                        player4Active = true;
                        break;

                }
                break;
        }
    }