예제 #1
0
        static void AddRelationshipInclusion(MenuCommand menuCommand)
        {
            GameObject selObj      = Selection.activeGameObject;
            var        composition = Undo.AddComponent <InclusionRelationship>(selObj);

            MenuDataUtil.SetupOneToManyRelationship(composition, "Inclusion");
        }
예제 #2
0
        static void AddRelationshipOneToMany(MenuCommand menuCommand)
        {
            GameObject selObj = Selection.activeGameObject;
            var        rel    = Undo.AddComponent <OneToManyRelationship>(selObj);

            MenuDataUtil.SetupOneToManyRelationship(rel, "OneToMany");
        }