Fix soundbird clicking issues
This commit is contained in:
@@ -9,7 +9,7 @@ public class SoundGenerator : MonoBehaviour
|
|||||||
[SerializeField] private Sprite exitSprite;
|
[SerializeField] private Sprite exitSprite;
|
||||||
[SerializeField] private AudioClip enterSound;
|
[SerializeField] private AudioClip enterSound;
|
||||||
[SerializeField] private AppleAudioSource audioSource;
|
[SerializeField] private AppleAudioSource audioSource;
|
||||||
[SerializeField] private AppleMachine soundBirdSMRef;
|
[SerializeField] public AppleMachine soundBirdSMRef;
|
||||||
[SerializeField] private soundBird_CanFly soundbirdHearingCheck;
|
[SerializeField] private soundBird_CanFly soundbirdHearingCheck;
|
||||||
|
|
||||||
private bool playerInside = false;
|
private bool playerInside = false;
|
||||||
|
|||||||
@@ -223,6 +223,11 @@ namespace Interactions
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected override (bool canProceed, string errorMessage) CanProceedWithInteraction()
|
protected override (bool canProceed, string errorMessage) CanProceedWithInteraction()
|
||||||
{
|
{
|
||||||
|
// TODO: Fuck this but it's late, check if the soundbird can sill be interacted with
|
||||||
|
var soundGenerator = FindFirstObjectByType<SoundGenerator>(FindObjectsInactive.Exclude);
|
||||||
|
if (soundGenerator)
|
||||||
|
return (soundGenerator.soundBirdSMRef.currentState.name.ToLower().Contains("soundbird_slot"), "Sound Bird!");
|
||||||
|
|
||||||
var heldItem = FollowerController?.CurrentlyHeldItemData;
|
var heldItem = FollowerController?.CurrentlyHeldItemData;
|
||||||
|
|
||||||
// Check if slot is locked after completion
|
// Check if slot is locked after completion
|
||||||
|
|||||||
Reference in New Issue
Block a user