Example #1
0
 private void Awake()
 {
     _gameController     = GameObject.FindGameObjectWithTag("GameController")?.GetComponent <GameController>();
     _informationsSystem = GetComponent <InformationsSystem>();
     _eventSystem        = EventSystem.current;
     _inputManager       = GameObject.FindWithTag("InputManager")?.GetComponent <InputManager>();
     cameras.Sort((a, b) => a.number.CompareTo(b.number));
     cameras.ForEach(c => c.items.Init());
     _gridSystem.Init(cameras.Count());
     _fullScreenSystem.SetTarget(cameras.First().items);
     GridInterface();
     _gridIsOpened = false;
     _informationsSystem.Init();
     SystemSwitch(mode);
 }