mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
delete then create enexes
This commit is contained in:
parent
8e08c8b1c8
commit
edaee31998
1 changed files with 5 additions and 0 deletions
|
@ -307,6 +307,11 @@ namespace SanAndreasUnity.Behaviours.World
|
|||
|
||||
internal void CreateEnexes()
|
||||
{
|
||||
this.gameObject
|
||||
.GetFirstLevelChildrenSingleComponent<EntranceExitMapObject>()
|
||||
.ToArray()
|
||||
.ForEach(_ => F.DestroyEvenInEditMode(_.gameObject));
|
||||
|
||||
m_enexes = new List<EntranceExitMapObject>(256);
|
||||
foreach(var enex in Item.Enexes.Where(enex => this.CellIds.Contains(enex.TargetInterior)))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue