private void AddTargetsForCustomDestination(Transform[] customTargets, ref List<Transform> targets) | Adds the custom targets, logging an error if there are none. |
private void AddTargetsForPlayerBody(PlayerController playerController, ref List<Transform> targets) | Adds the player's body transform, using the local player if none is given. |
private void AddTargetsForPlayerHands(PlayerController playerController, ref List<Transform> targets) | Adds both of the player's grip points, using the local player if none is given. |
private void CacheParticleMovementSettings(float particleSpeed, float particleAcceleration, float timeToStartMoving) | Stores the speed, acceleration and start delay for the movement routine. |
private List<Transform> GetParticleTargets(ParticleDestination destination, PlayerController playerController, Transform[] customTargets) | Builds the target transform list for the destination type. |
private void OnDisable() | Resets the arrival effect flag for the next use. |
private IEnumerator ParticleMovementRoutine(ParticleDestination destination, PooledObjectDefinition onTransformEffect, PlayerController playerController = null, Transform[] customTargets = null) (iterator) | Waits, then moves particles to the targets each frame until none are left, then waits for the wait-for systems and releases to the pool. |
private void SetupMovingParticles() | Allocates the particle buffer sized to the largest system's max particles. |
private void TryPlayDestinationEffect(PooledObjectDefinition onTransformEffect, List<Transform> targets) | Once every system has had a particle arrive, spawns the arrival effect on each target, once per use. |
private void UpdateParticlesForSystem(ParticleSystem particleSystemToMove, List<Vector3> targets, float maxDistanceDelta, int particleCount) | Moves each particle towards its target (spread round-robin over targets), killing those that arrive. |