static void AddRelationshipInclusion(MenuCommand menuCommand) { GameObject selObj = Selection.activeGameObject; var composition = Undo.AddComponent <InclusionRelationship>(selObj); MenuDataUtil.SetupOneToManyRelationship(composition, "Inclusion"); }
static void AddRelationshipOneToMany(MenuCommand menuCommand) { GameObject selObj = Selection.activeGameObject; var rel = Undo.AddComponent <OneToManyRelationship>(selObj); MenuDataUtil.SetupOneToManyRelationship(rel, "OneToMany"); }