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; |
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 UnityEngine; | |
using Random = UnityEngine.Random; | |
[Serializable] | |
public class SFXData | |
{ | |
public AudioClip clip; | |
public float vol = 1f; | |
} |
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 PlayFab; | |
using PlayFab.ClientModels; | |
using UnityEngine; | |
public class PlayfabLeaderboardManager : MonoBehaviour | |
{ | |
private bool isConnected = false; |
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 MoveableSmoothDamp : MonoBehaviour | |
{ | |
public Vector2 targetPosition; | |
private Vector2 velocity; | |
public float smoothTime = 0.3F; | |
public float maxVelocity = 10f; | |
private Vector2 currentVelocity; |
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 ScreenShake : MonoBehaviour | |
{ | |
public float screenShakeSetting = 8f; | |
private float shakeAmount; | |
private float originalShakeAmount; | |
private Vector3 originalPosition; | |
private Quaternion originalRotation; |
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; | |
using TMPro; | |
public class SineWaveTextAnimation : MonoBehaviour | |
{ | |
public TMP_Text textMesh; | |
public float frequency = 5.0f; | |
public float amplitude = 5.0f; | |
private TMP_TextInfo textInfo; | |
private bool[] animateCharFlags; |