示例#1
0
    virtual public void Attack()
    {
        // 清除上次操作选择反馈
        bfm.ResetLastOperatedGridUnit();

        // 收集可攻击单元网格
        ExtendAttackableGridUnit(currentPos);

        // 发送有效坐标
        bfm.ShowAttackableGridUnit(effectiveGridUnit);

        // 暂时关闭指令换
        uime.SetUnitOrderRingActive(false);
        if (campNumber == GlobalMainPlayerManager.GetMainPlayer())
        {
            GlobalMainPlayerManager.SetMainPlayerOs("attack");
        }
    }
示例#2
0
    /// <summary>
    /// 取消选择操作
    /// </summary>
    public void CancelOperated()
    {
        currentSelectedUnit = null;

        // 通知地图清除操作显示
        bfm.ResetLastOperatedGridUnit();

        os = operationStatus.Idle;

        // 清除单位属性窗口w
        uime.ClearUnitPropertyWindow();

        // 清除指令环
        uime.ClearUnitOrdersRing();
    }