Exemple #1
0
        public void SetLinkedPlayer(AiPlayer aiPlayer)
        {
            linkedPlayer = aiPlayer;
            vesselSpriteHandler.ChangeSprite(aiPlayer == null ? 0 : 1);

            if (isInteliCard)
            {
                UpdateGui();
            }

            //Set name of vessel to Ai name if we can
            GetComponent <Attributes>().ServerSetArticleName(aiPlayer.OrNull()?.PlayerScript.characterSettings.AiName ??
                                                             (isInteliCard ? "Intelicard" : "Ai Core"));
        }