Pigman AI input to detonate trashbag
This commit is contained in:
@@ -22,15 +22,25 @@ namespace Minigames.FortFight.Data
|
||||
[Tooltip("Maximum thinking time in seconds")]
|
||||
public float thinkTimeMax;
|
||||
|
||||
[Header("TrashBag Detonation")]
|
||||
[Tooltip("Minimum detonation distance from target (0-1, normalized along trajectory)")]
|
||||
public float trashBagDetonationDistanceMin;
|
||||
|
||||
[Tooltip("Maximum detonation distance from target (0-1, normalized along trajectory)")]
|
||||
public float trashBagDetonationDistanceMax;
|
||||
|
||||
/// <summary>
|
||||
/// Create AI difficulty data with specified parameters
|
||||
/// </summary>
|
||||
public AIDifficultyData(float angleDeviation, float forceDeviation, float thinkTimeMin, float thinkTimeMax)
|
||||
public AIDifficultyData(float angleDeviation, float forceDeviation, float thinkTimeMin, float thinkTimeMax,
|
||||
float trashBagDetonationDistanceMin = 0.2f, float trashBagDetonationDistanceMax = 0.4f)
|
||||
{
|
||||
this.angleDeviation = angleDeviation;
|
||||
this.forceDeviation = forceDeviation;
|
||||
this.thinkTimeMin = thinkTimeMin;
|
||||
this.thinkTimeMax = thinkTimeMax;
|
||||
this.trashBagDetonationDistanceMin = trashBagDetonationDistanceMin;
|
||||
this.trashBagDetonationDistanceMax = trashBagDetonationDistanceMax;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user