1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BITKit;
|
||||
using BITKit.Entities;
|
||||
using Cysharp.Threading.Tasks;
|
||||
@@ -46,6 +47,10 @@ namespace BITFALL.Props
|
||||
}
|
||||
rigidbody.Sleep();
|
||||
|
||||
if (hit.collider.TryGetComponent<ITag>(out var tags))
|
||||
{
|
||||
DI.Get<VFXService>().Spawn(hit,tags.GetTags());
|
||||
}
|
||||
if (TryGetComponent<Prop_ReplaceOnSleep>(out var replace))
|
||||
{
|
||||
replace.ReplaceImmediate(hit.collider.transform);
|
||||
|
Reference in New Issue
Block a user