public void PlayAttachedTo(Transform transform) { if (QueuedItems >= MaxEventsPerFrame) { return; } playQueue[QueuedItems] = new PlayRequest(transform.position, transform); QueuedItems++; }
public void PlayAt(Vector3 position) { if (QueuedItems >= MaxEventsPerFrame) { return; } playQueue[QueuedItems] = new PlayRequest(position); QueuedItems++; }