//Call by animation events public void Reloading(string reload) { if (reload == "start") { m_IsReloading = true; } else if (reload == "exit") { m_IsReloading = false; m_animator.SetBool("IsReloading", m_IsReloading); m_CurrentlyActiveGun.Reload(); } }
public void Reloading(string reload) { if (m_gunFireState == null) { return; } if (reload == "start") { m_gunFireState.m_IsReloading = true; } else if (reload == "exit") { m_gunFireState.m_IsReloading = false; m_currentlyActiveGun.Reload(); } }