Example #1
0
    public void Add()
    {
        if (DoOnce == true && DoOnce == DoneOnce)
        {
            return;
        }


        if (DoOnce == true)
        {
            JunkerGameMode.FinishedStoryPart(EventChain.name);

            DoneOnce = true;
        }

        if (EventChain != null)
        {
            foreach (GameEvent item in EventChain.eventChain)
            {
                EventManager.AddEvent(item);
            }
        }
        if (DoOnce == true)
        {
            var clawTarget = GetComponent <ClawTarget>();
            clawTarget.SetLightsVisible(DoOnce != DoneOnce || DoOnce == false);
        }
    }
Example #2
0
    public void Add()
    {
        if (DoOnce == true && DoOnce == DoneOnce)
            return;

        if (DoOnce == true)
        {
            JunkerGameMode.FinishedStoryPart(EventChain.name);

            DoneOnce = true;
        }

        if (EventChain != null)
            foreach (GameEvent item in EventChain.eventChain)
            {
                EventManager.AddEvent(item);
            }
    }