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
Netcode package: | |
com.unity.netcode.gameobjects | |
Mutiplayer helpers (ClientNetworkTransform): | |
https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop.git?path=/Packages/com.unity.multiplayer.samples.coop#main | |
ParrelSync: | |
https://github.com/VeriorPies/ParrelSync.git?path=/ParrelSync |
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
Команды в Git Bash консоли | |
clear — Очистить консоль | |
Навигация | |
pwd — Показать текущий каталог | |
ls - Показать файлы в данной папке, кроме скрытых | |
ls -f — Показать файлы в данной папке, включая и скрытые | |
cd c:/ — Перейти в конкретный каталог | |
cd - — Вернуться назад | |
cd .. — Выйти на 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 UnityEngine; | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
private static T _instance; | |
private static readonly object _instanceLock = new(); | |
private static bool _quitting; | |
public static T Instance |
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 System.Collections; | |
public class CameraShake : MonoBehaviour | |
{ | |
// Transform of the camera to shake. Grabs the gameObject's transform | |
// if null. | |
public Transform camTransform; | |
// How long the object should shake for. |