public void StoreCompletedCraftingSequence() { if (activeSequence.IsValid()) { Debug.Log(activeSequence.ToString()); activeSequence.RegisterSuccessfulSequenceConclusion(); completedCraftingSequences.Push(activeSequence); activeSequence = new CraftingSequence(); progressTracker.RegisterCraftingSequenceProgress(completedCraftingSequences.Peek()); } activeSequence.ClearSequence(); }
public bool ValidateCraftingSequence(CraftingSequence sequence) { return(sequences.Contains(sequence.ToString())); }