33 lines
695 B
C#
33 lines
695 B
C#
using Fantasy;
|
|
using UnityEngine;
|
|
|
|
namespace NBF
|
|
{
|
|
public abstract class FGearBase : MonoBehaviour
|
|
{
|
|
public FPlayer Player { get; protected set; }
|
|
public FRod Rod { get; protected set; }
|
|
public ItemInfo ItemInfo;
|
|
|
|
public HookAsset hookAsset;
|
|
|
|
private void Awake()
|
|
{
|
|
hookAsset = GetComponent<HookAsset>();
|
|
}
|
|
|
|
public virtual void Init(FPlayer player, FRod rod)
|
|
{
|
|
Player = player;
|
|
Rod = rod;
|
|
OnInit();
|
|
}
|
|
|
|
public void SetItemInfo(ItemInfo itemInfo)
|
|
{
|
|
ItemInfo = itemInfo;
|
|
}
|
|
|
|
protected abstract void OnInit();
|
|
}
|
|
} |