예제 #1
0
    // Update is called once per frame
    void Update()
    {
        switch (PlayerState)
        {
        case PlayerStates.PLAYER:
            playerControls.ControlPart();
            break;

        case PlayerStates.CONTROL0:
            player2Controls.ControlPart();
            break;

        case PlayerStates.MAINWEAPON:
            mainWeapon.ControlPart();
            break;
        }
    }