예제 #1
0
    // 显示高亮建筑
    private void ShowHighlightBuilding(List <Unit> units)
    {
        foreach (var u in units)
        {
            var mu = UC.GetModel(u.UID);

            var go = GameObject.Instantiate(mu.gameObject) as GameObject;
            go.SetActive(true);
            go.transform.SetParent(MS.Units);

            SetHighlightBuildingPos(go);

            go.GetComponent <MapUnit>().AddOutLineEffect();
            UC.AddCoverArea(go.transform, Color.green);

            uModels[u.UID] = go;
        }
    }