Пример #1
0
    public void UnregisterPancake(Pancake pancakeToUnreg)
    {
        //can not remove a pan if its raw or not there :)
        if (!currentPancake || currentPancake && currentPancake.GetCurrentState() == PancakeState.Mixture)
        {
            return;
        }

        //Set the temperature back to 0, sinc it is no longer in the pan
        currentPancake.SetTemperature(0);
        currentPancake.transform.parent = null;
        currentPancake.SetCurrentPan(null);
        currentPancake = null;
    }
Пример #2
0
    public void RegisterPancake(Pancake pancakeToReg)
    {
        // can not reg a raw pancake. this is delta with in batterCollision.
        if (pancakeToReg.GetCurrentState() == PancakeState.Mixture)
        {
            return;
        }

        currentPancake = pancakeToReg;
        currentPancake.transform.parent = transform;
        currentPancake.SetCurrentPan(this);
    }