Example #1
0
 /// <summary>
 /// 获得飞船组件模型
 /// </summary>
 /// <param name="id">组件ID</param>
 /// <returns></returns>
 public ShipComponent GetShipComponent(int id, int level)
 {
     return(ShipUnitLister.GetInstance().GetUnit <ShipComponent>(id, level));
 }
Example #2
0
 private void Awake()
 {
     instance = this;
 }
Example #3
0
 /// <summary>
 /// 获得方块模型
 /// </summary>
 /// <param name="id">方块id</param>
 /// <param name="level">方块等级</param>
 /// <returns></returns>
 public Block GetBlock(int id, int level)
 {
     return(ShipUnitLister.GetInstance().GetUnit <Block>(id, level));
 }