public void RemoveComponent(CoreComponent comp) { //Debug.Log($"RemoveComponent:{comp.name}"); if (componentSet.Contains(comp)) { componentSet.Remove(comp); } }
/// <summary> /// 現在のデータバージョン状態をインスペクタにヘルプボックスで表示する /// </summary> /// <param name="core"></param> public static void DispVersionStatus(CoreComponent core) { var code = core.VerityDataVersion(); if (Define.IsNormal(code)) { return; } EditorGUILayout.HelpBox(Define.GetErrorMessage(code), MessageType.Warning); }
/// <summary> /// Magicaコンポーネントの置換 /// </summary> /// <param name="comp"></param> private void ReplaceMagicaComponent(CoreComponent comp, Dictionary <Transform, Transform> boneReplaceDict) { comp.ChangeAvatar(boneReplaceDict); }
//========================================================================================= public void AddComponent(CoreComponent comp) { //Debug.Log($"AddComponent:{comp.name}"); componentSet.Add(comp); }