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); }
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); }