using UnityEngine; namespace Stary.Evo { public interface ICanSendCommand: IBelongToArchitecture { } public static class CanSendCommandExtension { public static void SendCommand(this ICanSendCommand self) where T :class, ICommand, new() { self.GetArchitecture().SendCommand(); } public static void SendCommand(this ICanSendCommand self,T command) where T : ICommand { self.GetArchitecture().SendCommand(command); } } }