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; | |
[System.Serializable] | |
public class RotationConstraints | |
{ | |
public Vector2 x = new Vector2(-30, 30); | |
public Vector2 y = new Vector2(-30, 30); | |
public Vector2 z = new Vector2(-5, 5); | |
} |
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 UIZoomMove : MonoBehaviour | |
{ | |
[Header("Zoom")] | |
[SerializeField] private float _zoomSpeed = 0.1f; | |
[SerializeField] private float _minZoom = 0.1f; | |
[SerializeField] private float _maxZoom = 5f; | |
[Header("Properties")] |
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; | |
namespace SFMeshDeformer.Demo | |
{ | |
public class BallThrow : MonoBehaviour | |
{ | |
[SerializeField] private Rigidbody _ballPrefab; | |
[SerializeField] private float _throwSpeed = 30f; | |
void Update() |
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
{ | |
"m_SGVersion": 3, | |
"m_Type": "UnityEditor.ShaderGraph.GraphData", | |
"m_ObjectId": "5c145d3ada4f40ea93038af752306c50", | |
"m_Properties": [ | |
{ | |
"m_Id": "729b6309691e494ca5acf0f0c5c34cf6" | |
}, | |
{ | |
"m_Id": "c993aca6d4e8473eb4d1795495527359" |
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 UnityEngine; | |
public static class RandomExtension | |
{ | |
public static int ProceedValue(float random, RandomData[] data) | |
{ | |
var cumulativeSumArray = new float[data.Length]; | |
cumulativeSumArray[0] = data[0].chance; | |
for (int i = 1; i < cumulativeSumArray.Length; ++i) |
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
root { | |
--app-background: url("https://wallpapers.com/images/hd/darling-in-the-franxx-pictures-wt4qtisaf6xdk0ah.jpg"); /* main app background image [default: url("https://przemec.github.io/Novum/assets/images/app.png")] */ | |
--main-color: #992727; /* main color (used mostly in buttons) [default: #992727] */ | |
--main-color-selected: #aa2f2f; /* [default: #aa2f2f] */ | |
--main-color-semitransparent: #d4393926; /* [default: #d4393926] */ | |
--main-color-semitransparent-selected: #d336364d; /* [default: #d336364d] */ | |
--accent-color: #fd9fa0; /* accent color (used in links, mentions etc.) [default: #fd9fa0] */ | |
--accent-color-semitransparent: #fca7a918; /* [default: #fca7a918] */ | |
--accent-saturated: #fd7a7c; /* [default: #fd7a7c] */ | |
--accent-desaturated: #b47a7a; /* [default: #b47a7a] */ |
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.Generic; | |
using UnityEngine; | |
public class DungeonCell : MonoBehaviour | |
{ | |
public List<int> connections = new List<int>(); | |
public int roomId = -1; | |
public Transform leftWall; | |
public Transform rightWall; |
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 ItemOverview : MonoBehaviour | |
{ | |
[SerializeField] private Transform center; | |
[SerializeField] private Transform viewCamera; | |
[SerializeField] private Transform overviewItem; | |
[SerializeField] private float itemRotationSpeed = 10f; | |
[SerializeField] private float cameraRotationSpeed = 0.5f; |
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.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
public class ImageToModel : MonoBehaviour | |
{ | |
public Sprite sprite; |
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.Events; | |
using UnityEngine.UI; | |
public class ColorPicker : MonoBehaviour | |
{ | |
public Slider rainbowSlider; | |
public Slider saturationSlider; | |
public Slider luminanceSlider; | |
public Slider alphaSlider; |
NewerOlder