Documentation for the Unity C# Library
Loading...
Searching...
No Matches
GameController.cs
Go to the documentation of this file.
2{
3 using UnityEngine;
4
5 public class GameController : MonoBehaviour
6 {
7 private void Start()
8 {
9 var firstService = ServiceLocator.Resolve<FirstService>();
10 var secondService = ServiceLocator.Resolve<SecondService>();
11 var thirdService = ServiceLocator.Resolve<ThirdService>();
12
13 firstService?.SayHi();
14 secondService?.SimpleMethod();
15 thirdService?.Foo();
16 }
17 }
18}
Unity components communication service.