Exemplo n.º 1
0
    //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;
    }
Exemplo n.º 2
0
 private void Awake()
 {
     _onlineManager = GetComponent <OnlineManagerVERSUS>();
     _globalManager = GetComponent <GlobalManager>();
     _uiManager     = GetComponent <UIManager>();
 }