修改
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77390e0ed53847f3b190ffc0d9f1319a
|
||||
timeCreated: 1773124629
|
||||
@@ -0,0 +1,27 @@
|
||||
using Fantasy.Async;
|
||||
using Fantasy.Entitas;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 玩家物品视图组件
|
||||
/// </summary>
|
||||
public abstract class PlayerItemView : Entity
|
||||
{
|
||||
public PlayerItem Item { get; protected set; }
|
||||
|
||||
|
||||
public abstract FTask InitShow(PlayerItem item);
|
||||
|
||||
// public async FTask InitShow()
|
||||
// {
|
||||
// // Item = GetParent<PlayerItem>();
|
||||
// var itemConfig = Game.Tables.TbItem.Get(Item.ConfigID);
|
||||
// // Rod = itemConfig.InstantiateAndComponent<FRod>(SceneSettings.Instance.GearNode, Vector3.zero,
|
||||
// // Quaternion.identity);
|
||||
//
|
||||
// // await Rod.InitRod(Item);
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98838cf2cf934b8aaaf97f4d58544055
|
||||
timeCreated: 1773116536
|
||||
Reference in New Issue
Block a user