Пример #1
0
        /// <summary>
        ///     Attaches a player's camera to this GlobalObject.
        /// </summary>
        /// <param name="player">The player whose camera to attach to this GlobalObject.</param>
        public virtual void AttachCameraToObject(BasePlayer player)
        {
            if (player == null)
            {
                throw new ArgumentNullException(nameof(player));
            }

            AssertNotDisposed();

            Internal.AttachCameraToObject(player.Id, Id);
        }