コード例 #1
0
        public void Start(Action onFinished)
        {
            var yStart = Rng.Int(280, 800);

            if (Character != null)
            {
                _elements.Add(Rng.Bool() ? CharacterFromLeft() : CharacterFromRight());
            }
            _elements.Add(new HorizontalFlyInAnimation(
                              new Label
            {
                TextColor = UiStyle.TextGreen, Text = Role,
                Transform = new Transform2(new Vector2(-800, yStart), new Size2(800, 100)),
                Font      = UiFonts.Header
            }));
            _elements.Add(new HorizontalFlyInAnimation(
                              new Label
            {
                Text      = Name,
                Transform = new Transform2(new Vector2(1920, yStart + 135), new Size2(800, 75))
            })
            {
                FromDir = HorizontalDirection.Right, ToDir = HorizontalDirection.Left
            });

            _countdown = _elements.Count;
            _elements.ForEach(x => x.Start(() => FinishedOne(onFinished)));
        }
コード例 #2
0
        public void Types_TryAll_NoException()
        {
            bool   a = Rng.Bool();
            ushort b = Rng.UInt16();
            short  c = Rng.Int16();
            uint   d = Rng.UInt32();
            int    e = Rng.Int32();
            ulong  f = Rng.UInt64();
            long   g = Rng.Int64();
            float  h = Rng.Single();
            double i = Rng.Double();
            byte   j = Rng.Byte();

            byte[] k = Rng.ByteArray(16);
        }