Documentation for the Unity C# Library
Loading...
Searching...
No Matches
ThirdService.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public class ThirdService : MonoBehaviour
6 {
7 private void Awake()
8 {
9 ServiceLocator.Register(this);
10 }
11
12 private void OnDestroy()
13 {
14 ServiceLocator.Unregister(this);
15 }
16
17 public void Foo()
18 {
19 Debug.Log("This is Foo method from " + nameof(ThirdService));
20 }
21 }
22}
Unity components communication service.