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
package com.dyguests.util | |
import androidx.annotation.CheckResult | |
import kotlinx.coroutines.CoroutineExceptionHandler | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Job | |
import kotlinx.coroutines.launch | |
/** | |
* Launch a coroutine with error handling support. |
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 UnityEngine; | |
namespace Inputs | |
{ | |
public abstract class CommonInput : MonoBehaviour | |
{ | |
protected InputActions InputActions { get; private set; } | |
protected virtual void Awake() | |
{ |
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
// ReSharper disable once InvalidXmlDocComment | |
/** | |
* Singleton.cs | |
* Author: Luke Holland (http://lukeholland.me/) | |
*/ | |
using System; | |
using UnityEngine; | |
namespace Koyou.Commons |
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 UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
public class CustomAndroidPreprocessBuild : IPreprocessBuildWithReport | |
{ | |
public int callbackOrder => 0; | |
public void OnPreprocessBuild(BuildReport report) | |
{ |
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
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
[Ll]ogs/ | |
# Uncomment this line if you wish to ignore the asset store tools plugin | |
# [Aa]ssets/AssetStoreTools* |
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
namespace Plugins.FanhlCores.Scripts.Tools | |
{ | |
public static class ObjectEx | |
{ | |
// Kotlin: fun <T, R> T.let(block: (T) -> R): R | |
public static R Let<T, R>(this T self, Func<T, R> block) | |
{ | |
return block(self); | |
} |
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 Plugins.FanhlCores.Tools | |
{ | |
public class LogGui : MonoBehaviour | |
{ | |
private const int MaxChars = 10000; | |
private static LogGui sInstance; |
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; | |
namespace Cores.Tools | |
{ | |
public static class EnumerableEx | |
{ | |
public static bool Unanimous<T>(this IEnumerable<T> enumerable) | |
{ | |
using var enumerator = enumerable.GetEnumerator(); | |
if (enumerator.MoveNext()) |
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 Cysharp.Threading.Tasks; | |
using JetBrains.Annotations; | |
namespace Plugins.FanhlCores.Tools | |
{ | |
public class BufferHandler<T> | |
{ | |
private readonly Queue<T> items = new(); |
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
namespace Tools | |
{ | |
public interface IObserver<out T> | |
{ | |
T Updater { get; } | |
} | |
} |
NewerOlder