Esempio n. 1
0
 //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();
     }
 }
Esempio n. 2
0
    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();
        }
    }