private void Awake()
    {
        _cam      = GetComponent <TiledCamera>();
        _controls = new Controls();
        _controls.Enable();

        _resize = _controls.Default.ResizeMap;
    }
Beispiel #2
0
    private void OnEnable()
    {
        if (_cam == null)
        {
            _cam = GetComponent <TiledCamera>();
        }

        if (_terminal == null)
        {
            if (_terminal == null)
            {
                _terminal = FindObjectOfType <TerminalBehaviour>();
            }
        }
    }