예제 #1
0
    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();
        }
    }
예제 #2
0
    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);
        }
    }