Skip to content

Instantly share code, notes, and snippets.

View somozadev's full-sized avatar
👋

Marcos Somoza somozadev

👋
View GitHub Profile
@adammyhre
adammyhre / Targeting.cs
Last active September 24, 2025 00:44
Combinator Programming Pattern for Unity C#
using UnityEngine;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using CanTarget = And<And<InRange, IsAlive>, LineOfSight>;
// ---------- Domain ----------
class Health : MonoBehaviour {
public int hp = 10;