diff options
| author | chai <215380520@qq.com> | 2024-05-19 16:05:01 +0800 |
|---|---|---|
| committer | chai <215380520@qq.com> | 2024-05-19 16:05:01 +0800 |
| commit | c5f145786f4c6d2fe4bea831dfc16e52228920a5 (patch) | |
| tree | a6ead7ea8266c767d58ed0f816dcd7a1dd75bd65 /GameCode/PlayerWeaponVisuals.cs | |
| parent | 48b64e573a1709dc923cb9162b55be0246b3ff63 (diff) | |
* move
Diffstat (limited to 'GameCode/PlayerWeaponVisuals.cs')
| -rw-r--r-- | GameCode/PlayerWeaponVisuals.cs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/GameCode/PlayerWeaponVisuals.cs b/GameCode/PlayerWeaponVisuals.cs deleted file mode 100644 index 0e5aa6f..0000000 --- a/GameCode/PlayerWeaponVisuals.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEngine; - -public class PlayerWeaponVisuals : MonoBehaviour, DayNightCycle.IDaytimeSensitive -{ - private GameObject visuals; - - public void Init(GameObject _visuals, ManualAttack _attack) - { - visuals = _visuals; - DayNightCycle.Instance.RegisterDaytimeSensitiveObject(this); - visuals.GetComponent<PlayerAttackAnimator>().AssignAttack(_attack); - if (TutorialManager.instance != null) - { - visuals.SetActive(value: true); - } - } - - public void OnDawn_AfterSunrise() - { - visuals.SetActive(value: false); - } - - public void OnDawn_BeforeSunrise() - { - } - - public void OnDusk() - { - visuals.SetActive(value: true); - } -} |
