I hereby claim:
- I am stipebosnjak on github.
- I am stajp (https://keybase.io/stajp) on keybase.
- I have a public key ASBO6IfKL31dlIU4LO48m1G9vLTWa-NJcbeVW_jRuriy5go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace Aoc.Puzzles |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace Utils | |
| { | |
| [System.Serializable] | |
| public class ObjectPoolItem | |
| { | |
| public GameObject objectToPool; | |
| public int amountToPool; |
| public void GenerateCrates(int crateCount) | |
| { | |
| var crateSize = Crate.GetComponent<BoxCollider>().size; | |
| var bounds = SpawnBounds.bounds; | |
| var maxCrates = bounds.size.x * bounds.size.z * bounds.size.y; | |
| Assert.IsFalse(crateCount > maxCrates, "Cargo hold cant hold that much crates!"); | |
| var bottomMin = bounds.min + crateSize / 2; |
| using UnityEngine; | |
| using UnityEditor; | |
| [CustomEditor(typeof(PlanetOrbit))] | |
| public class PlanetOrbitEditor : Editor | |
| { | |
| enum setupPlanet { Setup_Orbit, Setup_Rotation, Setup_Seasons } | |
| public override void OnInspectorGUI() | |
| { |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Text.RegularExpressions; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public static class UnityConstantsGenerator | |
| { | |
| [MenuItem("Edit/Generate UnityConstants.cs")] | |
| public static void Generate() |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace Assets._Scripts | |
| { | |
| public class StellarObject : MonoBehaviour | |
| { | |
| public const float TICK_TIME = 5f; | |
| private List<Factory> Factories; |
| using System; | |
| using UnityEngine; | |
| public class PlanetOrbit : MonoBehaviour | |
| { | |
| public static float EARTH_DISTANCE = 4000f; | |
| public static int TimeMultiplier = 200; | |
| public enum Orbit | |
| { |
| using System; | |
| using System.Collections.Generic; | |
| namespace FlatNestedArray | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| //[ [1, 2 , [3] ] ,4 ] -> [1,2,3,4] |
I hereby claim:
To claim this, I am signing this object: