- Basic Latin U+0000..U+007F (128 символов)
- Английский алфавит
- Датский алфавит
- Basic Latin U+0000..U+007F, Latin-1 Supplement U+0080..U+00FF (256 символов)
- Немецкий алфавит
- Французский алфавит
- Испанский алфавит
- Итальянский алфавит
- Португальский алфавит
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; | |
public class CellIndexSearcher | |
{ | |
private readonly RectTransform _cellsContainer; | |
private readonly float _cellW; | |
private readonly float _cellH; | |
private readonly float _spaceX; |
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; | |
public struct Either<TLeft, TRight> { | |
readonly TLeft left; | |
readonly TRight right; | |
readonly bool isRight; | |
Either(TLeft left, TRight right, bool isRight) { | |
this.left = left; |
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; | |
public class VerletRope : MonoBehaviour | |
{ | |
public Transform startPoint; // Начальная точка верёвки | |
public Transform endPoint; // Конечная точка верёвки | |
public int segmentCount = 10; // Количество сегментов верёвки | |
public float segmentLength = 0.2f; // Длина каждого сегмента | |
public int simulationIterations = 5; // Количество итераций симуляции | |
public float gravity = -9.8f; // Гравитация |
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
<network-security-config> | |
<domain-config cleartextTrafficPermitted="true"> | |
<domain includeSubdomains="true">127.0.0.1</domain> | |
</domain-config> | |
</network-security-config> |
Problem - Failed Unity Android Build with GA (Porting the WEBGL project to Android *YandexGame->GooglePlay)
Error list:
Assets/GameAnalytics/Plugins/Scripts/ILRD/GameAnalyticsILRD.cs(12,33): error CS1069: The type name 'AndroidJavaClass' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Android JNI' in the Package Manager window to fix this error.
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 System.Linq; | |
using UnityEngine; | |
public class ObjectPool<T> where T : MonoBehaviour | |
{ | |
private HashSet<T> prefabs = new(); | |
private Transform poolContainer; | |
private bool autoExpand; |
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; | |
namespace Unity_one_love | |
{ | |
public static class HierarchyRandom | |
{ | |
public static int Range(int minValue, int maxValue) | |
{ | |
int firstSum = maxValue - minValue + 1; | |
int sum = firstSum * (firstSum + 1) / 2 + 1; |
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.Collections; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class SwipeDetector : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler | |
{ | |
private Vector2 lastPosition; | |
public Vector2 swipeDelta; | |
private Coroutine coroutine; |
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 UnityEngine; | |
using UnityEngine.LowLevel; | |
using UnityEngine.PlayerLoop; | |
public static class PlayerLoopCleaner | |
{ | |
private static readonly Type[] typesToRemove = new Type[] { | |
typeof(EarlyUpdate.Physics2DEarlyUpdate), | |
// Physics 2D |
NewerOlder