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 Sirenix.OdinInspector; | |
using UnityEngine; | |
[RequireComponent(typeof(SpriteRenderer))] | |
public class SpriteMerger : MonoBehaviour | |
{ | |
private const int PixelsPerUnit = 256; | |
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 Newtonsoft.Json; | |
using Utilities.GameSettings; | |
namespace Framework.Map { | |
public class BuildingTypes : GameSetting<BuildingTypes, BuildingTypes.DataModel> { | |
#region Sub Classes / Enums | |
// requires static enum to be defined | |
public enum IdTypes { |
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 Newtonsoft.Json; | |
using Proyecto26; | |
using RSG; | |
// Dependencies | |
// REST Client - https://assetstore.unity.com/packages/tools/network/rest-client-for-unity-102501 | |
// JSON .Net - https://assetstore.unity.com/packages/tools/input-management/json-net-for-unity-11347 | |
namespace Utility.FireBase { | |
We can't make this file beautiful and searchable because it's too large.
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
definition,language,word | |
an act of cheating someone; a swindle.,en,jip | |
workout of the day (with reference to the CrossFit fitness programme).,en,wod | |
"used in names of plants and herbs, especially those used formerly as food or medicinally, e.g. butterwort, lungwort, woundwort.",en,wort | |
archaic or dialect term for hip2.,en,hep | |
"(in Thailand, Cambodia, and Laos) a Buddhist monastery or temple.",en,wat | |
"completely destroy (a building, town, or other settlement).",en,rase | |
an allowance made for the weight of the packaging in order to determine the net weight of goods.,en,tare | |
a cartoon film.,en,toon | |
a modern English translation of the Bible published in 1973–8.,en,niv |
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 System.Linq; | |
using UnityEngine; | |
namespace GameAssets.Scripts.Delaunay | |
{ | |
public interface IVoronoiCell | |
{ |
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
/* | |
* Author - https://twitter.com/JSqearle | |
* License - CC BY-SA | |
* Asset Dependencies: | |
* - https://assetstore.unity.com/packages/tools/sprite-management/shapes2d-procedural-sprites-and-ui-62586 (Free) | |
* - https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041 (optional - can be removed) | |
* - https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676 (Free) | |
*/ | |
using DG.Tweening; |
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 UnityEditor; | |
using UnityEngine; | |
namespace Utility.SLayout { | |
[CustomEditor(typeof(SHorizontalOrVerticalLayoutGroup), true)] | |
[CanEditMultipleObjects] | |
/// <summary> | |
/// Custom Editor for the HorizontalOrVerticalLayoutGroupEditor Component. | |
/// Extend this class to write a custom editor for a component derived from HorizontalOrVerticalLayoutGroupEditor. | |
/// </summary> |
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 static void DrawSphereCast(Vector3 origin, float radius, Color color, float duration = 0.1f) { | |
for(int x = -1; x < 2; x++) | |
for(int y = -1; y < 2; y++) | |
for (int z = -1; z < 2; z++) { | |
Vector3 end = origin + new Vector3(x, y, z) * radius; | |
Debug.DrawLine(origin, end, color, duration); | |
} | |
} |
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 Sirenix.OdinInspector; | |
using UnityEngine; | |
namespace GameAssets.Scripts.Utility { | |
public class ParticleSystemLine : MonoBehaviour { | |
#region Target | |
[FoldoutGroup("Target")] | |
[OnValueChanged("UpdateTarget")] public bool useTransform = true; |
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 Sirenix.OdinInspector; | |
using UnityEngine; | |
public class ParticleSystemCircle : MonoBehaviour { | |
private ParticleSystem _particleSystem; | |
private ParticleSystem.MainModule _main; | |
private ParticleSystem.ShapeModule _shape; | |
private ParticleSystem.EmissionModule _emission; | |
private ParticleSystem.VelocityOverLifetimeModule _velocity; |
NewerOlder