diff options
| author | chai <chaifix@163.com> | 2022-04-24 19:10:43 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2022-04-24 19:10:43 +0800 |
| commit | d69adc7009c7953749b59ace2518c0a7c99faa47 (patch) | |
| tree | 113b15cd7861b600dc001ab203999fd59adb26f1 /SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs | |
| parent | 6158af99ad803d9e29096ee6f65026d5e0db0f1f (diff) | |
+ light saber
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs')
| -rw-r--r-- | SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs index 44197c7..d921545 100644 --- a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs +++ b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs @@ -38,7 +38,7 @@ public partial class PlayerManager : Singleton<PlayerManager> { for(int i = 0; i < m_Equips.Count; ++i) { - m_Equips[i].Update(); + m_Equips[i].Update(m_Crew.gameObject); } } @@ -93,13 +93,14 @@ public partial class PlayerManager : Singleton<PlayerManager> if (m_CoFire != null) { GameApp.Instance.StopCoroutine(m_CoFire); + m_Equips.ForEach(e => e.OnStop(m_Crew.gameObject)); m_CoFire = null; } } } /// <summary> - /// Ώͺ»π + /// ΧΤΣΙΏͺ»π /// </summary> /// <returns></returns> IEnumerator coFire() @@ -124,6 +125,13 @@ public partial class PlayerManager : Singleton<PlayerManager> { } } + else if(equip.autoMode == EquipBase.AutoMode.Condition) + { + if(equip.CheckCondition(m_Crew.gameObject)) + { + equip.OnTrigger(m_Crew.gameObject); + } + } } yield return null; } |
