16 lines
488 B
C#
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");
|
|
}
|
|
}
|
|
} |