private IEnumerator PutInWasherRoutine(WolfWasher wolfWasher) { yield return(new WaitForSeconds(washerActivationDelay)); Destroy(gameObject); wolfWasher.associatedPlayer.IncrementScore(); wolfWasher.enabled = true; }
public void PutInWasher(WolfWasher wolfWasher) { if (m_dead) { return; } m_dead = true; m_trapDatas[0].ForceRelease(); m_trapDatas[1].ForceRelease(); wolfWasher.StartCoroutine(PutInWasherRoutine(wolfWasher)); }