2025-12-24 16:58:51 -05:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Cielonos.MainGame.Characters;
|
|
|
|
|
using Sirenix.OdinInspector;
|
2026-02-13 09:22:11 -05:00
|
|
|
using SLSUtilities.General;
|
2025-12-24 16:58:51 -05:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Cielonos.MainGame
|
|
|
|
|
{
|
|
|
|
|
public partial class BattleManager : Singleton<BattleManager>
|
|
|
|
|
{
|
|
|
|
|
private static Player Player => MainGameManager.Player;
|
|
|
|
|
|
|
|
|
|
[ShowInInspector]
|
|
|
|
|
private EnemySubmodule enemySm;
|
|
|
|
|
|
|
|
|
|
[ShowInInspector]
|
|
|
|
|
private AttackAreaSubmodule attackAreaSm;
|
2026-05-10 11:47:55 -04:00
|
|
|
|
|
|
|
|
[ShowInInspector]
|
|
|
|
|
private BattleRoomSubmodule battleRoomSm;
|
2025-12-24 16:58:51 -05:00
|
|
|
|
|
|
|
|
protected override void Awake()
|
|
|
|
|
{
|
|
|
|
|
base.Awake();
|
|
|
|
|
enemySm ??= new EnemySubmodule(this);
|
|
|
|
|
attackAreaSm ??= new AttackAreaSubmodule(this);
|
2026-05-10 11:47:55 -04:00
|
|
|
battleRoomSm ??= new BattleRoomSubmodule(this);
|
2025-12-24 16:58:51 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public partial class BattleManager
|
|
|
|
|
{
|
|
|
|
|
public static EnemySubmodule EnemySm => Instance.enemySm;
|
|
|
|
|
public static AttackAreaSubmodule AttackAreaSm => Instance.attackAreaSm;
|
2026-05-10 11:47:55 -04:00
|
|
|
public static BattleRoomSubmodule BattleRoomSm => Instance.battleRoomSm;
|
2025-12-24 16:58:51 -05:00
|
|
|
}
|
|
|
|
|
}
|