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