This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Unity.Extensions | |
{ | |
public static class GameObjectExtensions | |
{ | |
public static IEnumerable<TComponent> SelectComponents<TComponent>(this IEnumerable<GameObject> source) where TComponent : Component | |
{ | |
foreach (var go in source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UniRx; | |
using UniRx.Operators; | |
namespace Tonari.UniRx | |
{ | |
public static class WithHistoryExtensions | |
{ | |
public static IObservable<WithHistoryObservable<T>.WithHistoryValue> WithHistory<T>(this IObservable<T> source, int maxCount) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Tonari.Linq | |
{ | |
public static class Repetition | |
{ | |
public static IEnumerable<T> Create<T>(Func<T> factory, int count) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Tonari.Text | |
{ | |
public class StringBuilder : IDisposable | |
{ | |
private char[] _buffer; | |
private int _bufferLength; | |
private int _position; |
NewerOlder