27 lines
959 B
C#
27 lines
959 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Beyond
|
|
{
|
|
public class OpenConsumablesStep : MonoBehaviour
|
|
{
|
|
public InventoryMenuController inventoryMenuController;
|
|
|
|
public BaseStepController baseStepController;
|
|
|
|
// Start is called before the first frame update
|
|
private void Start()
|
|
{
|
|
//adding few healing and hope fruits so it will be here for sure for the next step in case Player decides for some reason to eat all of his fruits by this point
|
|
baseStepController.OnStarted += () => { Player.Instance.ItemManager.AddItemsByID(83, 3); Player.Instance.ItemManager.AddItemsByID(84, 3); };
|
|
baseStepController.ConditionsAreMet += () => inventoryMenuController.currentTypes.Contains(bItemType.Consumable);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
private void Update()
|
|
{
|
|
}
|
|
}
|
|
} |