Third-person 5v5 deathmatch Unity project. Everything is generated at runtime from a single GameBootstrap object — no prefabs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
15 lines
336 B
C#
15 lines
336 B
C#
using System;
|
|
|
|
namespace FPClash
|
|
{
|
|
public static class Extensions
|
|
{
|
|
/// <summary>Kotlin-style scope helper: run an action on <paramref name="obj"/> and return it.</summary>
|
|
public static T also<T>(this T obj, Action<T> action)
|
|
{
|
|
action?.Invoke(obj);
|
|
return obj;
|
|
}
|
|
}
|
|
}
|