Exemplo n.º 1
0
 public override void OnInspect()
 {
     foreach (var line in dialog)
     {
         m_CommonUIBehaviour.EnqueueDialog(line);
     }
 }
        public override void OnInspect()
        {
            if (count > options.Count)
            {
                return;
            }

            var random           = new Random();
            var temporaryOptions = new List <string>(options);

            for (var i = 0; i < count; i++)
            {
                var index  = random.Next(0, temporaryOptions.Count);
                var option = temporaryOptions[index];

                m_CommonUIBehaviour.EnqueueDialog(option);
                temporaryOptions.RemoveAt(index);
            }
        }