Example #1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (m_PlayerNum == 1)
     {
         if (m_manager.CheckingCurrentScore(2) > m_manager.CheckingCurrentScore(1))
         {
             m_WinningParticleEffect.SetActive(true);
         }
         else
         {
             m_WinningParticleEffect.SetActive(false);
         }
     }
     if (m_PlayerNum == 2)
     {
         if (m_manager.CheckingCurrentScore(1) > m_manager.CheckingCurrentScore(2))
         {
             m_WinningParticleEffect.SetActive(true);
         }
         else
         {
             m_WinningParticleEffect.SetActive(false);
         }
     }
 }