Beyond fixy, warps, dogi, scroll

This commit is contained in:
szczuras4
2025-02-25 18:01:50 +01:00
parent a2e07d4c4d
commit c5174b9e5f
11 changed files with 3120 additions and 1851 deletions

View File

@@ -11,6 +11,7 @@ namespace Beyond
public List<GameObject> objectsToInteractwith = new();
[SerializeField]
private bool interactedWithFruit = false, interactedWithFlower = false;
private bool disableInteractableOnEnd = false;
public List<bEquipSlot> hpSlots, faithSlots, gemstoneSlots;
public bEquipArea consumablesArea;
@@ -21,16 +22,19 @@ namespace Beyond
if (objectsToInteractwith != null && objectsToInteractwith.Count > 0)
{
baseStepController.OnEvaluationStart += () => objectsToInteractwith.ForEach(obj => obj.SetActive(true));
baseStepController.OnCompleted += () =>
if (disableInteractableOnEnd)
{
objectsToInteractwith.ForEach(obj =>
baseStepController.OnCompleted += () =>
{
if (obj != null)
objectsToInteractwith.ForEach(obj =>
{
obj.SetActive(false);
}
});
};
if (obj != null)
{
obj.SetActive(false);
}
});
};
}
// baseStepController.EvaluateInputs += () => !interacted.Exists(inter => inter == false);
baseStepController.ConditionsAreMet = () => interactedWithFlower && interactedWithFruit;
}