Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoPrivacy" /> class.
 /// </summary>
 /// <param name="add">Whether the video can be added to collections. (required).</param>
 /// <param name="comments">Who can comment on the video:  Option descriptions:  * &#x60;anybody&#x60; - Anyone can comment on the video.  * &#x60;contacts&#x60; - Only contacts can comment on the video.  * &#x60;nobody&#x60; - No one can comment on the video.  (required).</param>
 /// <param name="download">The video&#39;s download permission setting. (required).</param>
 /// <param name="embed">The video&#39;s embed permission setting:  Option descriptions:  * &#x60;private&#x60; - The video is private.  * &#x60;public&#x60; - Anyone can embed the video.  (required).</param>
 /// <param name="view">The general privacy setting for the video:  Option descriptions:  * &#x60;anybody&#x60; - Anyone can view the video.  * &#x60;contacts&#x60; - Only contacts can view the video.  * &#x60;disable&#x60; - Hide from vimeo  * &#x60;nobody&#x60; - No one besides the owner can view the video.  * &#x60;password&#x60; - Anyone with the video&#39;s password can view the video.  * &#x60;unlisted&#x60; - Not searchable from vimeo.com  * &#x60;users&#x60; - Only people with a Vimeo account can view the video.  (required).</param>
 public VideoPrivacy(bool add = default(bool), CommentsEnum comments = default(CommentsEnum), bool download = default(bool), EmbedEnum embed = default(EmbedEnum), ViewEnum view = default(ViewEnum))
 {
     this.Add      = add;
     this.Comments = comments;
     this.Download = download;
     this.Embed    = embed;
     this.View     = view;
 }
Пример #2
0
    public static void Log(CommentsEnum action)
    {
        string randomString = GetRandomStringFromList(actions[(int)action]);

        GameManager.instance.logs.AddText(randomString);
    }