Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        CountingPanContents validPan = other.gameObject.GetComponentInChildren <CountingPanContents>();

        if (validPan && side == validPan.GetPlayerSide() && validPan.isPanEmpty() == false)
        {
            pan            = validPan;
            onCorrectStove = true;
        }
    }
Esempio n. 2
0
    private void OnTriggerExit(Collider other)
    {
        CountingPanContents validPan = other.gameObject.GetComponentInChildren <CountingPanContents>();

        if (validPan && side == validPan.GetPlayerSide())
        {
            timeOnStove        = 0f;
            onCorrectStove     = false;
            countedPanContents = false;
        }
    }