/// <summary> /// 获得飞船组件模型 /// </summary> /// <param name="id">组件ID</param> /// <returns></returns> public ShipComponent GetShipComponent(int id, int level) { return(ShipUnitLister.GetInstance().GetUnit <ShipComponent>(id, level)); }
private void Awake() { instance = this; }
/// <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)); }