Exemple #1
0
    public void Mow()
    {
        m_timer = 0;

        if (m_tb.Active)
        {
            m_tb.Completed();
        }
    }
Exemple #2
0
    public void Clean()
    {
        m_timer = 0;

        if (m_timer == 0 && m_tb.Active)
        {
            m_tb.Completed();
        }
    }
Exemple #3
0
 public void StopCrying()
 {
     if (IsCrying)
     {
         m_tb.Completed();
         m_cryAudioSource.DOFade(0, 0.7f);
         //m_cryAudioSource.Stop();
         //m_noisesAudioSource.time = Random.Range(0, m_noisesAudioSource.clip.length);
         //m_noisesAudioSource.Play();
     }
 }