Exemplo n.º 1
0
    private IEnumerator PutInWasherRoutine(WolfWasher wolfWasher)
    {
        yield return(new WaitForSeconds(washerActivationDelay));

        Destroy(gameObject);

        wolfWasher.associatedPlayer.IncrementScore();
        wolfWasher.enabled = true;
    }
Exemplo n.º 2
0
    public void PutInWasher(WolfWasher wolfWasher)
    {
        if (m_dead)
        {
            return;
        }

        m_dead = true;

        m_trapDatas[0].ForceRelease();
        m_trapDatas[1].ForceRelease();

        wolfWasher.StartCoroutine(PutInWasherRoutine(wolfWasher));
    }