34 lines
917 B
C#
34 lines
917 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Cielonos.MainGame.Characters;
|
|
using Sirenix.OdinInspector;
|
|
using SLSUtilities.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;
|
|
}
|
|
} |