Skip to content

Instantly share code, notes, and snippets.

View RFS-6ro's full-sized avatar
🏠
Working from home

Daniil Tsyvakin RFS-6ro

🏠
Working from home
View GitHub Profile
@RFS-6ro
RFS-6ro / CustomInspectorCreator.cs
Created May 9, 2024 21:17 — forked from LotteMakesStuff/CustomInspectorCreator.cs
Editor extension that adds a tool to automagically generate boilerplate custom inspector code~ YES! Just drop it into a folder called 'Editor' and it adds a 'custom inspector' option into the Project window!
using UnityEngine;
using UnityEditor;
using System.IO;
public static class CustomInspectorCreator
{
[MenuItem("Assets/Create/Custom Inspector", priority = 81)]
static void CreateInsptorEditorClass()
{
foreach (var script in Selection.objects)
@RFS-6ro
RFS-6ro / HexGridLayout.cs
Created May 3, 2024 02:04 — forked from PopupAsylumUK/HexGridLayout.cs
A Layout group for arranging children in a hexagon grid, and a Hexagon graphic
using UnityEngine;
using UnityEngine.UI;
public class HexGridLayout : LayoutGroup {
const float SQUARE_ROOT_OF_3 = 1.73205f;
public enum Axis { Horizontal = 0, Vertical = 1 }
public enum Constraint { Flexible = 0, FixedColumnCount = 1, FixedRowCount = 2 }
using BT.Meta.Common.Environment.Balance;
using BT.Meta.Common.Environment.DailySchedule;
using BT.Meta.Common.Environment.Reputation;
using Leopotam.Ecs;
namespace BT.Meta.MainScene.UI.TopBar
{
public class SGUITopBarPresenter : IEcsInitSystem, IEcsRunSystem
{