void Awake()
    {
        _serLoc         = aServiceLocator.Instance;
        _anotherService = aNotherManager.Instance;
        _agearService   = aGearManager.Instance;

        _anotherService.Init();
        _agearService.Init();
    }
	void Awake()
	{
		_serLoc = aServiceLocator.Instance;
		_anotherService = aNotherManager.Instance;
		_agearService = aGearManager.Instance;

		_anotherService.Init();
		_agearService.Init();
	}
	public void Init()
	{
		_serLoc = aServiceLocator.Instance;
		_serLoc.AddService("AnotherService", Instance);
	}
Пример #4
0
 public void Init()
 {
     _serLoc = aServiceLocator.Instance;
     _serLoc.AddService("GearService", Instance);
 }