コード例 #1
0
        public override void OnSpawn()
        {
            var trail = new Content.Trails.RoundedTrail(target: projectile, length: 16 * 7, width: (p) => 16 * (1 - p * 0.8f), color: (p) => Color.Lerp(EffectColor, new Color(11, 26, 138), p) * (1 - p) * 0.4f, additive: true, smoothness: 15);

            trail.SetDissolveSpeed(0.35f);
            trail.SetEffectTexture(OrchidHelper.GetExtraTexture(5));
            PrimitiveTrailSystem.NewTrail(trail);
        }
コード例 #2
0
        public override void OnSpawn()
        {
            var trail = new Content.Trails.RoundedTrail(target: projectile, length: 16 * 10, width: (p) => 10 * (1 - p), color: (p) => EffectColor * (1 - p) * 0.5f, smoothness: 25);

            PrimitiveTrailSystem.NewTrail(trail);
        }