法杖,武器切换
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user