/// <inheritdoc /> public void RemoveFixedUpdate(IFixedRunnable runnable) { runnable.ThrowIfNull(nameof(runnable)); if (fixedRunnables.Remove(runnable)) { Log.Info("Removed fixed runnable of type {0} from {1}.", runnable.GetType().Name, gameObject.name); } }
/// <inheritdoc /> public void AddFixedUpdate(IFixedRunnable runnable) { runnable.ThrowIfNull(nameof(runnable)); if (!fixedRunnables.Contains(runnable)) { fixedRunnables.Add(runnable); Log.Info("Added fixed runnable of type {0} to {1}.", runnable.GetType().Name, gameObject.name); } }