void Start() { _movementHandler = GetComponent <MovementHandler>(); _movementHandler.DisableMovementEvent += DisableMovement; _movementHandler.EnableMovementEvent += EnableMovement; _player = FindObjectOfType <PlayerHandler>(); }
void Start() { GameData.Score = 0; _movementHandler = GetComponent <MovementHandler>(); _weaponHandler = GetComponent <WeaponHandler>(); _weaponHandler.DisableInputEvent += DisableInput; _weaponHandler.EnableInputEvent += EnableInput; }