Traveller/scripts/furniture/Barrier.cs
Cold-Mint 291ef653f0
Added wooden boxes and tutorial levels.
加入木箱子和教程关卡。
2024-10-07 23:29:08 +08:00

18 lines
532 B
C#

namespace ColdMint.scripts.furniture;
/// <summary>
/// <para>Barrier</para>
/// <para>屏障型家具</para>
/// </summary>
public partial class Barrier : Furniture
{
public override void _Ready()
{
base._Ready();
CanSleep = false;
SetCollisionLayerValue(Config.LayerNumber.Barrier, true);
SetCollisionLayerValue(Config.LayerNumber.Furniture, false);
SetCollisionMaskValue(Config.LayerNumber.Furniture, true);
SetCollisionMaskValue(Config.LayerNumber.Barrier, true);
}
}