// Use this for initialization void Start() { if (_type == CombineType.combine_mesh) { _base_avater = new CombineMeshAvatar(); } else if (_type == CombineType.share_skeleton) { _base_avater = new SkeletonAvatar(); } else if (_type == CombineType.combine_mesh_material_1) { _base_avater = new CombineMeshAvatar(); } else if (_type == CombineType.combine_mesh_material_2) { _base_avater = new Material2Avatar(); } _base_avater.Init(pfb_skeleton); }