29 lines
964 B
C#
29 lines
964 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Beyond
|
|
{
|
|
public class MaturityBrightnessStep : MonoBehaviour
|
|
{
|
|
public List<GameObject> objectsToDisable;
|
|
public BaseStepController baseStepController;
|
|
public GameObject questLogPopupsToDisable;
|
|
public Image menuButonDisable;
|
|
|
|
public GameObject stopCollider;
|
|
|
|
private void Start()
|
|
{
|
|
baseStepController.OnStarted += () => { objectsToDisable.ForEach(obj => obj.SetActive(false)); };
|
|
baseStepController.OnCompleted += () => { objectsToDisable.ForEach(obj => obj.SetActive(true)); stopCollider.SetActive(false); questLogPopupsToDisable.SetActive(true); menuButonDisable.raycastTarget = true; };
|
|
baseStepController.ConditionsAreMet += () => true;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
private void Update()
|
|
{
|
|
}
|
|
}
|
|
} |