mirror of
https://github.com/Kizuren/ShantiManti.git
synced 2026-01-07 23:19:10 +01:00
Small changes
This commit is contained in:
parent
6f5129ec44
commit
8a185ad6ce
4 changed files with 6 additions and 29 deletions
|
|
@ -26,15 +26,9 @@ public class MusicToggle : MonoBehaviour
|
|||
UpdateMusicState();
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_inputActions.Enable();
|
||||
}
|
||||
private void OnEnable() => _inputActions.Enable();
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
_inputActions.Disable();
|
||||
}
|
||||
private void OnDisable() => _inputActions.Disable();
|
||||
|
||||
private void MuteMusic()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,15 +23,9 @@ public class Tutorial : MonoBehaviour
|
|||
button.interactable = false;
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_inputActions.Enable();
|
||||
}
|
||||
private void OnEnable() => _inputActions.Enable();
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
_inputActions.Disable();
|
||||
}
|
||||
private void OnDisable() => _inputActions.Disable();
|
||||
|
||||
public void NextPage()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,11 +28,6 @@ public class PlayerHealth : MonoBehaviour
|
|||
|
||||
|
||||
private void Update() {
|
||||
/*if (Input.GetKeyDown(KeyCode.B))
|
||||
{
|
||||
TakeDamage(20);
|
||||
}*/
|
||||
|
||||
if(Enemy.TookDamage && !Pause.IsPause)
|
||||
{
|
||||
TakeDamage(20);
|
||||
|
|
|
|||
|
|
@ -62,15 +62,9 @@ public class PlayerMovement : MonoBehaviour
|
|||
};
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
InputActions.Enable();
|
||||
}
|
||||
private void OnEnable() => InputActions.Enable();
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
InputActions.Disable();
|
||||
}
|
||||
private void OnDisable() => InputActions.Disable();
|
||||
|
||||
public void PlayCoinSound()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue