Fix soundbird clicking issues
This commit is contained in:
@@ -9,7 +9,7 @@ public class SoundGenerator : MonoBehaviour
|
||||
[SerializeField] private Sprite exitSprite;
|
||||
[SerializeField] private AudioClip enterSound;
|
||||
[SerializeField] private AppleAudioSource audioSource;
|
||||
[SerializeField] private AppleMachine soundBirdSMRef;
|
||||
[SerializeField] public AppleMachine soundBirdSMRef;
|
||||
[SerializeField] private soundBird_CanFly soundbirdHearingCheck;
|
||||
|
||||
private bool playerInside = false;
|
||||
|
||||
@@ -223,6 +223,11 @@ namespace Interactions
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
// Check if slot is locked after completion
|
||||
|
||||
Reference in New Issue
Block a user