aaa
This commit is contained in:
@@ -200,6 +200,16 @@ namespace BoneSync.Sync.Components
|
||||
return false;
|
||||
}
|
||||
|
||||
private IEnumerator DespawnSyncable()
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
gameObject?.SetActive(false);
|
||||
yield return null;
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
private void _DiscardSyncable(bool force, bool despawn)
|
||||
{
|
||||
bool isRegistered = Registered;
|
||||
@@ -226,10 +236,7 @@ namespace BoneSync.Sync.Components
|
||||
|
||||
DestroyImmediate(this); // delete the component
|
||||
|
||||
if (despawn)
|
||||
{
|
||||
gameObject?.SetActive(false);
|
||||
}
|
||||
if (despawn) MelonCoroutines.Start(DespawnSyncable());
|
||||
}
|
||||
|
||||
private void OnRegister()
|
||||
|
||||
Reference in New Issue
Block a user