浮漂脚本
This commit is contained in:
26
Assets/Scripts/Common/Config/GoodsConfig.cs
Normal file
26
Assets/Scripts/Common/Config/GoodsConfig.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public partial class GoodsConfig
|
||||
{
|
||||
private List<AwardData> _awards;
|
||||
|
||||
public List<AwardData> Awards
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_awards == null)
|
||||
{
|
||||
_awards = new List<AwardData>();
|
||||
foreach (var item in Items)
|
||||
{
|
||||
_awards.Add(new AwardData(item));
|
||||
}
|
||||
}
|
||||
|
||||
return _awards;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user