Beyond fixy, warps, dogi, scroll
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user