Esempio n. 1
0
 /// <summary>
 /// 从仓库放到船上。
 /// </summary>
 public void WareHouse2Ship(Int2 TargetMg)
 {
     PutCanvasM.AddNewCore(m_Core, TargetMg);
     SetTouchMoveData(m_Core.m_type, false, m_Core.m_ID);
     CreateStair(m_Core);
     GenerateDeck();
     //SetDepth(true);
 }
Esempio n. 2
0
    /// <summary>
    /// 新增船只建筑,兵,加入。
    /// </summary>
    public static void JointShipBuild(TouchMove touch)
    {
        if (touch == null || touch.MyCore() == null)
        {
            Debug.LogError("船只摆设数据加入有误,请调查");
            return;
        }

        if (CheckHaveBuild(touch.MyCore()) == false)
        {
            m_Build.Add(touch);
            if (!touch.MyCore().IsNewCreate)
            {
                PutCanvasM.AddNewCore(touch.MyCore(), touch.m_posMapGrid);
            }
        }
    }