50 lines
733 B
C#
50 lines
733 B
C#
using UFS3;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu]
|
|
public class FishingSetData : ScriptableObject
|
|
{
|
|
public FishingMethodType SetType;
|
|
|
|
public RodData Rod;
|
|
|
|
public ReelData Reel;
|
|
|
|
public LineData Line;
|
|
|
|
public BobberData Bobber;
|
|
|
|
public HookData Hook;
|
|
|
|
public WeightData Weight;
|
|
|
|
public LureData Lure;
|
|
|
|
public BaitData Bait;
|
|
|
|
public void ValidateSet()
|
|
{
|
|
}
|
|
|
|
public bool IsSetArmed()
|
|
{
|
|
switch (SetType)
|
|
{
|
|
case FishingMethodType.Spinning:
|
|
if ((bool)Rod && (bool)Reel && (bool)Line)
|
|
{
|
|
return Lure;
|
|
}
|
|
return false;
|
|
case FishingMethodType.Float:
|
|
if ((bool)Rod && (bool)Reel && (bool)Line && (bool)Bobber && (bool)Hook)
|
|
{
|
|
return Bait;
|
|
}
|
|
return false;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
}
|