First commit for private source control. Older commits available on Github.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Linq;
|
||||
using BriarQueen.Data.Identifiers;
|
||||
using BriarQueen.Framework.Managers.Levels.Data;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BriarQueen.Game.Levels.ChapterOne.PumpingHouse
|
||||
{
|
||||
public class Pumphouse : BaseLevel
|
||||
{
|
||||
[SerializeField]
|
||||
private GameObject _pliers;
|
||||
|
||||
public override string LevelName => "Pumphouse";
|
||||
|
||||
protected override async UniTask PostLoadInternal()
|
||||
{
|
||||
if (SaveManager.CurrentSave.CollectedItems.Any(x => x.UniqueIdentifier == ItemIDs.Get(ItemKey.Pliers)))
|
||||
await DestructionService.Destroy(_pliers);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user