Skip to content

Instantly share code, notes, and snippets.

View nedfreetoplay's full-sized avatar

JustNeed nedfreetoplay

View GitHub Profile
@Matthew-J-Spencer
Matthew-J-Spencer / PlayerAnimator.cs
Created July 6, 2022 11:30
Control unity animations using code. Video: https://youtu.be/ZwLekxsSY3Y
using System;
using UnityEngine;
using UnityEngine.Tilemaps;
using Random = UnityEngine.Random;
public class PlayerAnimator : MonoBehaviour {
[SerializeField] private float _minImpactForce = 20;
// Anim times can be gathered from the state itself, but
// for the simplicity of the video...
@Glavak
Glavak / SceneTransition.cs
Created June 12, 2020 10:55
Скрипт для смены сцен в Unity 3D с загрузочным экраном, для туториала https://youtu.be/QfO11O4pUp8
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class SceneTransition : MonoBehaviour
{
public Text LoadingPercentage;
public Image LoadingProgressBar;
private static SceneTransition instance;
@jerrydeakins
jerrydeakins / remove_idea_etc
Last active July 9, 2024 14:34
Как удалить любую папку, в т.ч. и .idea, и лишние файлы из Git
Как удалить любую папку, в т.ч. и .idea, и лишние файлы из Git
Создаем файл .gitignore в корне репозитария с содержимым:
.idea
logs/
------------------------------------------------------------------
Подробнее можно ознакомиться на странице: https://git-scm.com/book/ru/v1/Основы-Git-Запись-изменений-в-репозиторий
Удаляем ненужные папки и файлы при синхронизации в Git репозиторий