Пример #1
0
    private DepNode FocusNode(bool isFocus = true)
    {
        DepNode node = buildingController.FindRelationNode(focusNode);

        if (isFocus && callback == null)
        {
            RoomFactory.Instance.FocusNode(node);
        }
        else
        {
            if (callback != null)
            {
                callback(node);//外部的回掉函数(一般是聚焦建筑)
            }
        }
        return(node);
    }