mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 17:13:21 +08:00
26 lines
732 B
C#
26 lines
732 B
C#
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|||
|
|
|||
|
using System;
|
|||
|
using osu.Game.Graphics.Backgrounds;
|
|||
|
|
|||
|
namespace osu.Game.Modes.Osu.Objects.Drawables.Pieces
|
|||
|
{
|
|||
|
public class TrianglesPiece : Triangles
|
|||
|
{
|
|||
|
protected override bool ExpireOffScreenTriangles => false;
|
|||
|
protected override bool CreateNewTriangles => false;
|
|||
|
protected override float SpawnRatio => 0.5f;
|
|||
|
|
|||
|
public TrianglesPiece()
|
|||
|
{
|
|||
|
TriangleScale = 1.2f;
|
|||
|
}
|
|||
|
|
|||
|
protected override void Update()
|
|||
|
{
|
|||
|
if (IsPresent)
|
|||
|
base.Update();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|