Add an input switch to the minigame settings and fix monster spawn issues

This commit is contained in:
Michal Pikulski
2025-10-14 09:04:05 +02:00
parent 2573e7f80e
commit 05f63b28a0
7 changed files with 173 additions and 18 deletions

View File

@@ -139,6 +139,10 @@ namespace AppleHills.Core.Settings
[Tooltip("Animation curve for the shrinking effect")]
[SerializeField] private AnimationCurve viewfinderShrinkCurve = AnimationCurve.EaseInOut(0, 1, 1, 0);
[Header("Photo Input")]
[Tooltip("Input mode for photo taking sequence")]
[SerializeField] private PhotoInputModes photoInputMode = PhotoInputModes.Tap;
[Tooltip("Padding factor to add space around the monster (1.0 = exact size, 1.2 = 20% extra)")]
[SerializeField] private float paddingFactor = 1.2f;
@@ -220,6 +224,7 @@ namespace AppleHills.Core.Settings
public float PaddingFactor => paddingFactor;
public float MaxSizePercent => maxSizePercent;
public float MinSizePercent => minSizePercent;
public PhotoInputModes PhotoInputMode => photoInputMode;
public override void OnValidate()
{

View File

@@ -3,6 +3,15 @@ using System.Collections.Generic;
namespace AppleHills.Core.Settings
{
/// <summary>
/// Enum defining the different input modes for photo taking
/// </summary>
public enum PhotoInputModes
{
Tap, // Original tap-based input
Hold // New hold-based input
}
/// <summary>
/// Interface for player and follower settings
/// </summary>
@@ -120,5 +129,8 @@ namespace AppleHills.Core.Settings
float PaddingFactor { get; }
float MaxSizePercent { get; }
float MinSizePercent { get; }
// Photo Input Settings
PhotoInputModes PhotoInputMode { get; }
}
}