Files
Cielonos/Assets/Scripts/MainGame/Managers/BattleManager/BattleManager.cs

34 lines
917 B
C#
Raw Normal View History

2025-12-24 16:58:51 -05:00
using System;
using System.Collections.Generic;
using System.Linq;
using Cielonos.MainGame.Characters;
using Sirenix.OdinInspector;
using SLSFramework.General;
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;
protected override void Awake()
{
base.Awake();
enemySm ??= new EnemySubmodule(this);
attackAreaSm ??= new AttackAreaSubmodule(this);
}
}
public partial class BattleManager
{
public static EnemySubmodule EnemySm => Instance.enemySm;
public static AttackAreaSubmodule AttackAreaSm => Instance.attackAreaSm;
}
}