Пример #1
0
    public TreeInfo AddTreeInfo(Vector3 wpos, int prototype, float wScale, float hScale)
    {
        TreeInfo ti = TreeInfo.GetTI();

        ti.m_clr          = Color.white;
        ti.m_lightMapClr  = Color.white;
        ti.m_widthScale   = wScale;
        ti.m_heightScale  = hScale;
        ti.m_protoTypeIdx = prototype;
        ti.m_pos          = LSubTerrUtils.TreeWorldPosToTerrainPos(wpos);
        return(AddTreeInfo(ti));
    }