20 lines
529 B
C#
20 lines
529 B
C#
using Fantasy.Async;
|
|
using UnityEngine;
|
|
|
|
namespace NBF
|
|
{
|
|
public class PlayerItemRodView : PlayerItemView
|
|
{
|
|
public RodAsset RodAsset;
|
|
|
|
public override async FTask InitShow(PlayerItem item)
|
|
{
|
|
Item = item;
|
|
var itemConfig = Game.Tables.TbItem.Get(Item.ConfigID);
|
|
RodAsset = itemConfig.InstantiateAndComponent<RodAsset>(SceneSettings.Instance.GearNode, Vector3.zero,
|
|
Quaternion.identity);
|
|
|
|
// await Rod.InitRod(Item);
|
|
}
|
|
}
|
|
} |