示例#1
0
        public void ServerToggleRcs(bool on, ConnectedPlayer subject)
        {
            if (playerControllingRcs != null && playerControllingRcs != subject)
            {
                playerControllingRcs.Script.RcsMode       = false;
                playerControllingRcs.Script.RcsMatrixMove = null;
            }

            if (subject != null)
            {
                subject.Script.RcsMode       = on;
                subject.Script.RcsMatrixMove = on ? MatrixMove : null;
            }

            RcsMode = on;
            MatrixMove.ToggleRcs(on);
            SetRcsLight(on);

            if (on)
            {
                playerControllingRcs = subject;
            }
            else
            {
                playerControllingRcs = null;
            }
        }
    public void ServerToggleRcs(bool on, ConnectedPlayer subject)
    {
        RcsMode = on;
        MatrixMove.ToggleRcs(on);
        SetRcsLight(on);

        if (on)
        {
            playerControllingRcs = subject;
        }
        else
        {
            playerControllingRcs = null;
        }
    }