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
import os | |
import subprocess | |
import time | |
from git import Repo | |
# Configuration | |
BRANCH = 'origin/main' | |
REPO_PATH = '' # Path to the local Git repository | |
UNITY_PROJECT_PATH = REPO_PATH # Path to the Unity project | |
UNITY_EXECUTABLE = '' # Path to the Unity executable |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class RaycastInverter : Mask | |
{ | |
public override bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) | |
{ | |
return !base.IsRaycastLocationValid(sp, eventCamera); |
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 System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
public class LocString | |
{ | |
public string en; | |
public string ru; |
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
public class CMSEntity | |
{ | |
public string id; | |
public List<CMSComponentDefinition> components = new List<CMSComponentDefinition>() { new AnythingTag() }; | |
public T Define<T>() where T : CMSComponentDefinition, new() | |
{ | |
var t = Get<T>(); |
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; | |
public class ScrollUVVFX : MonoBehaviour | |
{ | |
public Vector2 speed; | |
private Material materialToScroll; | |
private Vector2 uvOffset; | |
void Start() | |
{ |
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
Shader "Custom/SpriteScrollShaderWithColor" { | |
Properties { | |
_MainTex ("Texture", 2D) = "white" {} | |
_UVOffset ("UV Offset", Vector) = (0,0,0,0) | |
_Color ("Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
Tags { "Queue"="Transparent" "RenderType"="Transparent" } | |
LOD 100 |
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; | |
public static class ListPool<T> | |
{ | |
const int InitialPoolSize = 32; | |
static List<List<T>> pool = new List<List<T>>(InitialPoolSize); | |
public static List<T> Request(int minSize = 32) | |
{ |
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
Shader "Custom/RoundedCornersGradientShader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_ColorTop ("Top Color", Color) = (1,1,1,1) | |
_ColorBottom ("Bottom Color", Color) = (1,1,1,1) | |
_CornerRadius ("Corner Radius", Range(0, 0.5)) = 0.1 | |
} | |
SubShader |
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; | |
[ExecuteInEditMode] | |
public class CardSetAlign : MonoBehaviour | |
{ | |
public float width = 1f; | |
void Update() | |
{ | |
var count = transform.childCount; |
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; | |
using PlayFab; | |
using PlayFab.ClientModels; | |
public class PlayFabManager : MonoBehaviour | |
{ | |
private const string PlayFabTitleId = "YOUR_PLAYFAB_TITLE_ID"; // Замените на ваш Title ID | |
private string backupSaveData; |
NewerOlder