This file contains hidden or 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
public delegate UniTask ActionAsync(CancellationToken cancellationToken); | |
public delegate UniTask ActionAsync<in T>(T value, CancellationToken cancellationToken); | |
public static class ActionAsyncExtensions | |
{ | |
public static UniTask InvokeAsync(this ActionAsync handler, CancellationToken cancellationToken) | |
{ | |
Delegate[] delegates = handler?.GetInvocationList(); |
This file contains hidden or 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; | |
using UnityEngine.UI; | |
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
using UnityEngine.U2D; | |
#endif | |
using Sprites = UnityEngine.Sprites; | |
#if UNITY_EDITOR |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PhysicsMovement : MonoBehaviour | |
{ | |
public float MinGroundNormalY = .65f; | |
public float GravityModifier = 1f; | |
public Vector2 Velocity; |
This file contains hidden or 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; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
[RequireComponent(typeof(ScrollRect))] | |
public class ScrollToSelected : MonoBehaviour | |
{ | |
public float scrollSpeed = 10f; |