void Start()
        {
            _movementHandler = GetComponent <MovementHandler>();
            _movementHandler.DisableMovementEvent += DisableMovement;
            _movementHandler.EnableMovementEvent  += EnableMovement;

            _player = FindObjectOfType <PlayerHandler>();
        }
Exemple #2
0
        void Start()
        {
            GameData.Score = 0;

            _movementHandler = GetComponent <MovementHandler>();

            _weaponHandler = GetComponent <WeaponHandler>();
            _weaponHandler.DisableInputEvent += DisableInput;
            _weaponHandler.EnableInputEvent  += EnableInput;
        }