Ejemplo n.º 1
0
    public override void SaveStartOfLevel()
    {
        base.SaveStartOfLevel();
        SingleUndo_Jammer levelStart = new SingleUndo_Jammer();

        levelStart.jammedTools          = GetComponent <Jammer>().jammedTools;
        levelStart.jammedPressurePlates = GetComponent <Jammer>().jammedPressureplates;
        levelStart.destroyed            = false;
        allUndos.Add(levelStart);
    }
Ejemplo n.º 2
0
    public override void SaveUndo()
    {
        base.SaveUndo();
        SingleUndo_Jammer newUndo = new SingleUndo_Jammer();

        newUndo.jammedTools          = GetComponent <Jammer>().jammedTools;
        newUndo.jammedPressurePlates = GetComponent <Jammer>().jammedPressureplates;
        newUndo.destroyed            = GetComponent <Jammer>().destroyed;
        allUndos.Add(newUndo);
    }