public CatModelInstance Clone() { CatModelInstance newCatModelInstance = new CatModelInstance(); newCatModelInstance.m_catModel = m_catModel; newCatModelInstance.m_materialParameterTips = m_materialParameterTips.Clone(); return(newCatModelInstance); }
/** * @brief Create an instance from model * * @param _catModel prototype model * * @result the instance * */ public static CatModelInstance CreateFromCatsModel(CatModel _catsModel) { if (_catsModel == null) { return(null); } CatModelInstance newCatModelInstance = new CatModelInstance(); newCatModelInstance.m_catModel = _catsModel; newCatModelInstance.m_materialParameterTips = _catsModel.GetMaterial().Clone(); return(newCatModelInstance); }