This commit is contained in:
CortexCore
2023-11-15 23:54:54 +08:00
parent ee3ecec6cb
commit 3c837a4a33
356 changed files with 73756 additions and 26493 deletions

View File

@@ -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);