Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
poi-vrc committed May 2, 2024
1 parent a3417b6 commit 0d3503b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 32 deletions.
18 changes: 0 additions & 18 deletions Editor/Configurator/Avatar/AvatarProvider.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,29 @@
* You should have received a copy of the GNU General Public License along with DressingFramework. If not, see <https://www.gnu.org/licenses/>.
*/

using System.Collections.Generic;
using Chocopoi.DressingFramework;
using Chocopoi.DressingTools.Components.OneConf;
using UnityEngine;
using UnityEngine.SceneManagement;

namespace Chocopoi.DressingTools.Configurator.Avatar
{
internal interface IAvatarProvider
internal static class AvatarUtils
{
GameObject[] GetSceneAvatars();
IAvatarSettings GetAvatarSettings(GameObject avatarGameObject);
public static IAvatarSettings GetAvatarSettings(GameObject avatarGameObject)
{
if (avatarGameObject.TryGetComponent<DTCabinet>(out _))
{
return new OneConfAvatarSettings(avatarGameObject);
}
// TODO: standalone avatar settings component
return null;
}

public static List<GameObject> FindSceneAvatars(Scene scene)
{
return DKRuntimeUtils.FindSceneAvatars(scene);
}
}
}
11 changes: 0 additions & 11 deletions Editor/Configurator/Avatar/IAvatarProvider.cs.meta

This file was deleted.

0 comments on commit 0d3503b

Please sign in to comment.