public interface IService { string Run(); } public class TestService : IService { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public string Run() { return "-->[TestService] testService: Run something"; } }