public override void ManuallySetTime(float sequencerTime) { foreach (Transform transform in base.transform) { USEventBase component = transform.GetComponent <USEventBase>(); if (component) { float deltaTime = sequencerTime - component.FireTime; if (component.AffectedObject) { component.ManuallySetTime(deltaTime); } } } }
public override void ManuallySetTime(float sequencerTime) { foreach (Transform child in transform) { USEventBase baseEvent = child.GetComponent <USEventBase>(); if (!baseEvent) { continue; } float deltaTime = sequencerTime - baseEvent.FireTime; if (baseEvent.AffectedObject) { baseEvent.ManuallySetTime(deltaTime); } } }