UI 系统
This commit is contained in:
@@ -54,18 +54,18 @@ namespace BaseGames.Player
|
||||
{
|
||||
ServiceLocator.GetOrDefault<ISaveableRegistry>()?.Register(this);
|
||||
if (_input == null) return;
|
||||
_input.SwitchSkyFormEvent += OnSwitchSky;
|
||||
_input.SwitchEarthFormEvent += OnSwitchEarth;
|
||||
_input.SwitchDeathFormEvent += OnSwitchDeath;
|
||||
_input.SwitchTianHunFormEvent += OnSwitchSky;
|
||||
_input.SwitchDiHunFormEvent += OnSwitchEarth;
|
||||
_input.SwitchMingHunFormEvent += OnSwitchDeath;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
ServiceLocator.GetOrDefault<ISaveableRegistry>()?.Unregister(this);
|
||||
if (_input == null) return;
|
||||
_input.SwitchSkyFormEvent -= OnSwitchSky;
|
||||
_input.SwitchEarthFormEvent -= OnSwitchEarth;
|
||||
_input.SwitchDeathFormEvent -= OnSwitchDeath;
|
||||
_input.SwitchTianHunFormEvent -= OnSwitchSky;
|
||||
_input.SwitchDiHunFormEvent -= OnSwitchEarth;
|
||||
_input.SwitchMingHunFormEvent -= OnSwitchDeath;
|
||||
}
|
||||
|
||||
private void Start()
|
||||
|
||||
Reference in New Issue
Block a user