| | |
| | | GA_Pet _pet = owner as GA_Pet; |
| | | if (_pet != null) |
| | | { |
| | | if (Time.time - m_LastDanceTime > GeneralConfig.Instance.PetDanceInterval) |
| | | if (Time.time - m_LastDanceTime > GeneralDefine.PetDanceInterval) |
| | | { |
| | | _pet.Play(GAStaticDefine.State_Dance); |
| | | m_LastDanceTime = Time.time; |
| | |
| | | GA_NpcFunc _funcNpc = owner as GA_NpcFunc; |
| | | if (_funcNpc != null && _funcNpc.NpcConfig.NPCType == 0) |
| | | { |
| | | if (Time.time - m_LastDanceTime > GeneralConfig.Instance.FuncNpcDanceInterval) |
| | | if (Time.time - m_LastDanceTime > GeneralDefine.FuncNpcDanceInterval) |
| | | { |
| | | _funcNpc.Play(GAStaticDefine.State_Dance); |
| | | m_LastDanceTime = Time.time; |