コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        /// <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);
            }
        }