private void SetupCurrentStep() { if (this.m_CurrentStep >= this.m_Steps.Count) { return; } GhostStep ghostStep = this.m_Steps[this.m_CurrentStep]; foreach (GhostSlot ghostSlot in ghostStep.m_Slots) { ghostSlot.Activate(); } }
public void OnGhostFulfill(ItemID item_id, bool from_save) { ItemInfo info = ItemsManager.Get().GetInfo(item_id); bool flag = true; GhostStep ghostStep = this.m_Steps[this.m_CurrentStep]; foreach (GhostSlot ghostSlot in ghostStep.m_Slots) { if (!ghostSlot.m_Fulfilled) { flag = false; break; } } if (flag) { this.m_CurrentStep++; this.SetupCurrentStep(); } if (!from_save) { this.PlayInsertSound(info); } }