首次提交
This commit is contained in:
31
Assets/Scripts/Fishing~/Player/Gear/FBait.cs
Normal file
31
Assets/Scripts/Fishing~/Player/Gear/FBait.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using NBF;
|
||||
using UnityEngine;
|
||||
|
||||
public class FBait : FPlayerGear
|
||||
{
|
||||
// private float takeRange = 5f;
|
||||
public BaitAsset baitAsset;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
baitAsset = GetComponent<BaitAsset>();
|
||||
}
|
||||
|
||||
// public bool CheckBaitEfficacy(float distanceToFish)
|
||||
// {
|
||||
// float num = 0f;
|
||||
//
|
||||
// float num2 = 100f;
|
||||
// takeRange = 1f + num2 * 0.5f;
|
||||
// int num3 = Random.Range(0, 1);
|
||||
// Debug.Log("Bait efficacy range: " + (takeRange + takeRange * num) + " Bait current efficacy < rand: " + num2 +
|
||||
// "/" + num3);
|
||||
// if ((float)num3 > num2)
|
||||
// {
|
||||
// Debug.Log("Bait efficacy is too low");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// return true;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user