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 readonly struct CellPosGrade | |
{ | |
public readonly int X; | |
public readonly int Y; | |
public readonly int Grade; | |
public CellPosGrade(int x, int y, int grade) | |
{ | |
X = x; | |
Y = y; | |
Grade = grade; |
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
Shader "Custom/RhombusSprite" { | |
Properties { | |
_MainTex ("Texture", 2D) = "white" {} | |
_InternalLineSize ("Value", Range(0, 1)) = 1 | |
_ExternalLineSize ("Value", Range(0, 1)) = 1 | |
_Color ("Color", Color) = (1, 1, 1, 0) | |
} | |
SubShader { | |
Tags { "Queue"="Transparent" } |
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.Threading.Tasks; | |
using UnityEngine; | |
namespace Helpers | |
{ | |
public static class GraduateHelper | |
{ | |
public static async void Graduate(Action<float> action, float duration, bool reverse = false) | |
{ |
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 System.Text.Json; | |
namespace NamePairGenerate; | |
public struct GenerateConfig | |
{ | |
public string JsonDataPath { get; } | |
public int NeedUsersCount { get; } | |
public int MinScoreValue { get; } |