Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/UFS3/LureData.cs
2026-03-04 09:37:33 +08:00

35 lines
897 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace UFS3
{
[CreateAssetMenu(fileName = "LureData", menuName = "Data/LureData")]
public class LureData : BaseItemData, IItemType
{
[Tooltip("If 0 then lure rotate freely, use this for stabilize lure rotation axis")]
public Vector3 axisNormal;
public List<FishData> attractedFish = new List<FishData>();
public float size;
public float twitchySpeed = 1f;
public ItemType ItemType => ItemType.Lure;
public override string StatisticText
{
get
{
string text = $"<b>Size:</b> {size * 100f}cm</b>\n" + $"<b>Weight:</b> {weight}g\n";
List<string> lureFishNames = new List<string>();
attractedFish.ForEach(delegate(FishData fish)
{
lureFishNames.Add(fish.FishName);
});
return string.Concat(text + "\n<size=32><b>Best for:</b></size>\n", string.Join(", ", lureFishNames));
}
}
}
}