Exemple #1
0
 private void Update()
 {
     if (!m_Dying)
     {
         if (m_BeingLasered)
         {
             if (m_AIMovement.GetSpeed() == 1.0f)
             {
                 m_AIMovement.SetSpeed(0.8f);
             }
         }
         if (m_AIMovement.GetSpeed() == 0.8f)
         {
             if (m_LaserCooldownTime > 0.5f)
             {
                 m_BeingLasered = false;
                 m_AIMovement.SetSpeed(1.0f);
                 m_LaserCooldownTime = 0.0f;
             }
             else
             {
                 m_LaserCooldownTime += Time.deltaTime;
             }
         }
     }
 }