//Beginning private void Awake() { if (Instance == null) { Instance = this; } else { DestroyImmediate(gameObject); } _fxManager = GetComponent <FXManager>(); _onlineManager = GetComponent <OnlineManagerVERSUS>(); _entityManager = GetComponent <EntityManager>(); _uiManager = GetComponent <UIManager>(); _cameraController = GetComponent <CameraController>(); _unitSpawner = GetComponent <UnitSpawner>(); _entityManager.enabled = false; _unitSpawner.enabled = false; _cameraController.enabled = false; }
private void Awake() { _onlineManager = GetComponent <OnlineManagerVERSUS>(); _globalManager = GetComponent <GlobalManager>(); _uiManager = GetComponent <UIManager>(); }