Files
Hasebe/Assets/Code/OfficeGame/Location/LocationSegmentTrigger.cs
T
2026-09-25 16:27:22 +03:00

16 lines
488 B
C#

using System;
using TinyGoose.Tremble;
using UnityEngine;
namespace Code.Game.OfficeGame.Location
{
[BrushEntity(type: BrushType.Trigger, trenchBroomName: "LocationSegmentTrigger")]
public class LocationSegmentTrigger : MonoBehaviour, IOnImportFromMapEntity
{
public LocationSegment segment;
public void OnImportFromMapEntity(MapBsp mapBsp, BspEntity entity)
{
gameObject.layer = LayerMask.NameToLayer("LocationTrigger");
}
}
}